Sorting a dictionary (with date keys) in Python,"ordered = OrderedDict(sorted(list(mydict.items()), key=lambda t: t[0]))"