Reading records from file and sorting

Charles R Harris charlesr.harris at gmail.com
Wed Nov 1 22:52:34 CST 2006


On 11/1/06, George Sakkis <george.sakkis at gmail.com> wrote:
>
> Albert Strasheim wrote:
>
> > Check the thread "Strange results when sorting array with fields" from
> > about a week back. Travis made some changes to sorting in the presence
> > of fields that should solve your problem, assuming your fields appear in
> > the order you want to sort (i.e. you want to sort f1, f2, f3 and not
> > something like f1, f3, f2).
>
> I'm afraid this won't help in my case; I want to sort twice, once by f1
> and once by f2. I guess I could make a second file with the fields
> swapped but this seems more messy and inefficient than Francesc's
> suggestion.


Do you actually want the two different orders, or do you want to sort on the
first field, then sort all the items with the same first field on the second
field?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20061101/4cdbee6b/attachment-0001.html 
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion


More information about the Numpy-discussion mailing list