Multidimensional sort

termiflyer dpflagg at earthlink.net
Wed Oct 10 15:47:36 EDT 2007


How do I sort this:

>>> a
[['3', ['1', '0']], ['4', ['3', '0'], ['2', '0']]]

where the list can be arbitrarily large by the 3rd dimension (i
think).  E.g.:

>>> a
[['3', ['1', '0']], ['4', ['2', '0'], ['3', '0']]]


Thanks




More information about the Python-list mailing list