class documentation

Sort by attribute or item Example usage: sort = Sorter() list = [(1, 2), (4, 8), (0, 3)] dict = [{'a': 3, 'b': 4}, {'a': 5, 'b': 2}, {'a': 0, 'b': 0}, {'a': 9, 'b': 9}] sort(list) # default sort sort(list, 1) # sort by index 1 sort(dict, 'a') # sort a list of dicts by key 'a'

Method byAttribute Undocumented
Method byItem Undocumented
Method _helper Undocumented
def byAttribute(self, data, attributename, inplace=True): (source)

Undocumented

def byItem(self, data, itemindex=None, inplace=True): (source)

Undocumented

def _helper(self, data, aux, inplace): (source)

Undocumented