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

Home » Public Forums » archive » Re: machine dependant sort & other IDL mysteries
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: machine dependant sort & other IDL mysteries [message #33953] Thu, 06 February 2003 07:30 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
"Mark Servetus" <markservetus@hotmail.com> wrote in message
news:16cf4e47.0302060605.45ddc357@posting.google.com...
> Just got done debugging a case of the machine dependant sort method
> (many thanks to pvwave) when the values being sorted are identical.
> (XP vs. 2000, fyi)
>
> Since IDL is marketed as machine independent, I would have expected a
> note in the reference that SORT may not produce same results in some
> cases. Then I would have expected a /FIFO or something flag which,
> when used, would guarantee cross machine congruence.
>
> Since neither of those things was provided, I am now suspicious of
> other methods.
>
> Does anyone have any advice that would ease my worries?

Try BSORT from the Astronomy library:

http://www.astro.washington.edu/deutsch-bin/getpro/library01 .html?BSORT

The problem is that SORT does not maintain original subscript order for
equal input values. On different IDL platforms, the order of sorted equal
values may be different. See the Google history on this topic:

http://groups.google.com/groups?q=bsort&meta=group%3Dcom p.lang.idl-pvwave

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Previous Topic: machine dependant sort & other IDL mysteries
Next Topic: de la doc sur pv wave

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

Current Time: Wed Oct 08 18:36:16 PDT 2025

Total time taken to generate the page: 0.00496 seconds