comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » how to sort data based on other sorted data
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to sort data based on other sorted data [message #58036 is a reply to message #58013] Sat, 12 January 2008 11:35 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Tom McGlynn <tam@milkyway.gsfc.nasa.gov> writes:
> On Jan 10, 3:51 pm, placebo <willie.mad...@gmail.com> wrote:
>>> try Craig Markwardt's multisort
>>
>>> http://astrog.physics.wisc.edu/~craigm/idl/arrays.html#MULTI SORT
>>
>> Brian,
>>
>> The multisort method works quite well.
>>
> ...
>
> Multisort works fine and knowing Craig will work very robustly
> but I don't think you need to have any limit on
> the number of columns. Below is a routine that should
> be able to handle an arbitrary number of columns and rows...

Hi Tom, thanks for the interesting contribution. I think the essence
of BIGSORT and MULTISORT are similar, namely to build up a surrogate
sort key. MULTISORT does it with strings and BIGSORT does it with
integers. Clearly sorting by integers will be faster.

Incidentally, the MULTISORT limitation of ten sort keys was purely
arbitrary, and it would be trivial to extend. But honestly, who would
need so many sort keys? It's like the people who shop for cameras
these days based on megapixels...

Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: image on map
Next Topic: Statistics : T-test, P-value

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 20:22:21 PDT 2025

Total time taken to generate the page: 0.47943 seconds