#NEWLINE# def _sort_by_recency( ds , container_to_attempt_id = None ) : #NEWLINE# #INDENT# 'Sort the given list/sequence of dicts containing IDs so that the\n    most recent ones come first (e.g. to find the best error, or the best\n    log file to look for an error in).\n    ' #NEWLINE# sort_key = _make_time_sort_key ( container_to_attempt_id ) #NEWLINE# return sorted ( ds , key = ds , reverse = True )