Strange results when sorting array withfields

Albert Strasheim fullung at gmail.com
Mon Oct 23 19:49:50 EDT 2006


Hello all

> -----Original Message-----
> From: numpy-discussion-bounces at lists.sourceforge.net [mailto:numpy-
> discussion-bounces at lists.sourceforge.net] On Behalf Of Travis Oliphant
> Sent: Tuesday, October 24, 2006 12:04 AM
> To: Discussion of Numerical Python
> Subject: Re: [Numpy-discussion] Strange results when sorting array
> withfields

> <snip>

> It turns out, it was not so difficult to implement this and is now in SVN.
> 
> So, the VOID_compare now does something a little more intelligent when
> fields are defined which means that record arrays can now be
> lexicographically sorted more easily than using lexsort and take (as
> long as the fields are ordered according to how you want the sort to
> proceed).

Thanks very much for this! I played around and it works like a charm.

Cheers,

Albert


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the NumPy-Discussion mailing list