Re: Multidimensional sort

2007-10-10 Thread James Stroud
termiflyer wrote: > 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 > Your difficulties come from

Re: Multidimensional sort

2007-10-10 Thread Paul Hankin
On Oct 10, 8:47 pm, termiflyer <[EMAIL PROTECTED]> wrote: > 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']]] The

Multidimensional sort

2007-10-10 Thread termiflyer
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 -- http://mail.python.org/mailman/listinfo/python-list