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

Home » Public Forums » archive » sorting string arrays - non alphabetic and user defined order
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: sorting string arrays - non alphabetic and user defined order [message #50820 is a reply to message #50654] Tue, 17 October 2006 05:00 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Greg Michael writes:

> hmm... it seems to me that 'result' is the array you are looking for:
> it has the elements in the order you want, and they have the indices
> numbered from zero (i.e. there are no empty elements).

It seems that way to me, too. But I had to work with
the solution for a time before I understood it. It
would have taken me a LONG time to think of using
indices rather than strings to come up with a solution.
Perhaps the solution was TOO concise. I've expanded on
it just a little bit in this article:

http://www.dfanning.com/idl_way/strsort.html

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: path to .sav file
Next Topic: Re: Retrieving the title of a widget_base after the fact.

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

Current Time: Sat Oct 11 05:36:55 PDT 2025

Total time taken to generate the page: 0.32011 seconds