sort the list

Shi Mu samrobertsmith at gmail.com
Mon Nov 21 06:36:06 EST 2005


I have a list like [[1,4],[3,9],[2,5],[3,2]]. How can I sort the list
based on the second value in the item?
That is,
I want the list to be:
[[3,2],[1,4],[2,5],[3,9]]



More information about the Python-list mailing list