Possible Duplicate:
In Python how do I sort a list of dictionaries by values of the dictionary?
Sorting Python dictionary based on nested dictionary values
I have dictionary of the form as mentioned below:
a_dict = { 'e': (1, 100), 'a': (2, 3) }
I am unable to sort it by the second element of the tuple. The resultant dictionary will appear as below:
a_dict = { 'a': (2, 3), 'e': (1, 100) }