import collections


def _unique_sort(iterable):
    """Returns unique elements in the iterable, in order of appearance"""
    d = collections.OrderedDict()
    for i in iterable:
        d[i] = None
    return list(d.keys())