I have a Python dictionary like this:
{
'apple': datetime.datetime(2012, 12, 20, 0, 0, tzinfo=<UTC>),
'orange': datetime.datetime(2012, 2, 4, 0, 0, tzinfo=<UTC>),
'raspberry': datetime.datetime(2013, 1, 9, 0, 0, tzinfo=<UTC>)
}
What is the best way to sort the dictionary by the datetime values? I am looking for a list output with the keys in order from most recent to oldest.