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

Home » Public Forums » archive » Interesting property of sort
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: Interesting property of sort [message #54083 is a reply to message #53994] Wed, 16 May 2007 09:52 Go to previous messageGo to previous message
cmancone is currently offline  cmancone
Messages: 30
Registered: May 2007
Member
Interesting. That explains a lot. I had checked the results of my
sort to see whether or not it maintained order for equal value points,
and I didn't see any loss of order. When it was suggested to use
bsort to maintain the order, I just assumed that sort happened to get
it right for the things I checked. I guess I really just didn't have
to worry, since I'm on linux.

On May 16, 11:55 am, "wlands...@jhu.edu" <wlands...@gmail.com> wrote:
>> Humm. Well, I haven't looked at it in a long time.
>> Looks to me like BSORT uses the IDL SORT command to
>> get the initial cut. (And I have NO idea what algorithm
>> is used for that. It is the standard OS SORT routine,
>> I'm sure.)
>
> That's right, the IDL SORT uses the sort algorithm of the OS, so the
> way it treats equal values depends on the OS. From previous
> discussions here, I believe that most Linux systems preserve order for
> equal values, but Windows and Mac OSX do not. I've been tempted to
> update bsort.pro to just call SORT if the user is on the "right" OS,
> but that sort ( pun intended) of coding is difficult to maintain. --
> Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: why I can't use the max memory available?
Next Topic: embedded formatting hell: x-bar meaning "mean of x"

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

Current Time: Sat Oct 11 05:02:20 PDT 2025

Total time taken to generate the page: 0.40015 seconds