def pairs(sequence):
    """Returns the list of pairs that you can create from the sequence. The results
    are ordered and no duplicates will be included, also, if <a,b> is in the result
    then <b,a> won't be."""
    sequence = sorted(list(set(sequence)))
    indices = list(range(len(sequence)))
    return [(sequence[i], sequence[j]) for i in indices for j in indices if i < j]