[Numpy-discussion] stable sort on a recarray ?

Robert Kern robert.kern@gmail....
Tue Mar 29 13:40:55 CDT 2011


On Tue, Mar 29, 2011 at 13:33,  <butterw@gmail.com> wrote:

> Any suggestions on how to achieve stable sort based on multiple columns with
> numpy ?

http://docs.scipy.org/doc/numpy/reference/generated/numpy.lexsort.html#numpy.lexsort

It uses mergesort for stability.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the NumPy-Discussion mailing list