def sort_double_char_labels(labels):
    """Sort double char labels based on the order of repeated, lower and other labels"""
    repeated_char_labels = [label for label in labels if label[0] == label[1]]

    lower_char_labels = [label for label in labels
                         if label[0].islower() and label[1].islower()
                         and label not in repeated_char_labels]

    other_labels = [label for label in labels
                    if label not in repeated_char_labels and label not in lower_char_labels]

    labels = repeated_char_labels + lower_char_labels + other_labels

    return labels