Possible Duplicate:
Sorting a tuple that contains tuples
I am having some trouble with sorting a tuple which contain number and string. in the beginning, I have a tuple like this:
a=(("a",2),("b",2),("a",1))
then how can I sort it into: (by number first then alphabetical)
a=(("a",1),("a",2),("b",2))
Thank a lot for your help!