[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sort ordering
- Subject: sort ordering
- From: Med Bennett <mbennett(at)indra.com>
- Date: Fri, 09 Feb 2001 12:55:47 -0700
- Newsgroups: comp.lang.idl-pvwave
- Organization: Posted via Supernews, http://www.supernews.com
- Reply-To: mbennett(at)indra.com
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:23484
I'm confused by the following behavior:
> IDL> print,stations[0:9]
> S301 S301 S301 S301 S301 S301 S301 S301 S301 S301
> IDL> print,sort(stations[0:9])
> 5 1 2 3 4 0 6 7 8 9
>
If the elements of certain part of an array are identical, why does IDL
not generate sort indices in ascending order? This has ugly
implications for some programs I am writing. Thanks,
Med Bennett