[Numpy-discussion] lexsort

2008-05-06 Thread Eleanor
, equivalent to sorting on column A then column B in Excel, but al the transposes are ungainly. I've stared at it a while but can't come up with a more elegant solution. Any ideas? cheers Eleanor ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http

Re: [Numpy-discussion] lexsort

2008-05-06 Thread Eleanor
([[ 1, 1, 50], [ 1, 2, 60], [ 2, 1, 7], [ 2, 2, 800]]) This is correct versus a[numpy.lexsort(a.T),:] array([[ 2, 1, 7], [ 1, 1, 50], [ 1, 2, 60], [ 2, 2, 800]]) which isn't. Thanks very much Eleanor