parameters: (tuples, allitems, deterministic_order=False)
docstring: sort the given list of items by dependency.
  
      'tuples' is a list of tuples representing a partial ordering.
      'deterministic_order' keeps items within a dependency tier in list order.
docstring_summary: sort the given list of items by dependency.
docstring_tokens: sort the given list of items by dependency .
function: def sort(tuples, allitems, deterministic_order=False):
      """sort the given list of items by dependency.
  
      'tuples' is a list of tuples representing a partial ordering.
      'deterministic_order' keeps items within a dependency tier in list order.
      """
  
      for set_ in sort_as_subsets(tuples, allitems, deterministic_order):
          for s in set_:
              yield s
function_tokens: def sort ( tuples , allitems , deterministic_order = False ) : for set_ in sort_as_subsets ( tuples , allitems , deterministic_order ) : for s in set_ : yield s