"R.Bauer" wrote: > SORT() is not platform independent!!!!! So if all elements of the array are identical, you wish to maintain the index order. How about this: if (n_elements(uniq(arr)) eq 1) then $ idx = lindgen(n_elements(arr)) else $ idx = sort(arr) Cheers, Liam. -- Liam E. Gumley Space Science and Engineering Center, UW-Madison http://cimss.ssec.wisc.edu/~gumley