

def sort(tuples, allitems):
    "sort the given list of items by dependency.\n\n    'tuples' is a list of tuples representing a partial ordering.\n    "
    for set_ in sort_as_subsets(tuples, allitems):
        for s in set_:
            (yield s)

dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/util/topological.py sort/original