def sort_item(iterable, number, reverse=False):
    """Sort the itertable according to the given number item."""
    return sorted(iterable, key=itemgetter(number), reverse=reverse)
def sort_item ( iterable , number , reverse = False ) : return sorted ( iterable , key = itemgetter ( number ) , reverse = reverse )
Sort the itertable according to the given number item.