I have a python dictionary with the following format.
{'KEY': (NUMBER, [DATE1, DATE2]}
For example, {'a': (10, ['2010/04/11','2009/03/11'])}
How can I sort this dictionary by the DATE1(the first element in the list)?
EDIT
Can I sorted again when the date is the same? For example.
{'a': (10, ['2010/04/11','2009/03/11'])}
{'b': (20, ['2010/04/11','2009/03/10'])}
{'c': (100, ['2009/01/01'])}
-->
{'b': (20, ['2010/04/11','2009/03/10'])} // this comes first as 20 > 10
{'a': (10, ['2010/04/11','2009/03/11'])}
{'c': (100, ['2009/01/01'])}