def splitobs_sort(obj):
    """Sort cigar operations for the consensus creation."""
    return (
        obj.reference[1],
        obj.reference[2],
        obj.code,
        obj.length,
        obj.sequence)