[email protected] wrote: >> I may miss something obvious, but why are you using lexsort at all ? At >> leat, the first example is easily achieved with sort(x, axis=0) - but >> maybe you have more complicated examples in mind where you need actual >> lexical sort: >> >> David >> > > >From the examples that I tried out np.sort, sorts each column > separately (with axis = 0). If the elements of a row is supposed to > stay together, then np.sort doesn't work. >
You're right, as Robert just mentioned, I totally missed the point of your example... David _______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
