Possible Duplicate:
How to sort (list/tuple) of lists/tuples?
I have a list of tuples that i want to sort in numerical order by the second value in the tuple. A sample of the list im working with is:
[('H2O', '6'), ('O2', '4')]
so what i would want in this case is:
[('O2','4'),('H2O',6')]
I know this is really basic I just can seem to figure it out.