I have a dictionary. The keys are dates (datetime). I need to sort the dictionary so that the values in the dictionary are sorted by date - so that by iterating through the
Dictionaries are unsortable. Iterate over sorted(mydict.keys()) instead.
sorted(mydict.keys())