Hi
It appears that I am having problem with ARRAY SORT. I generate a
list of random numbers then have the compute sort them using ARRAY
SORT. I then wish to use the first four lowest numbers. However, I
have noticed that generally one of the four wanted numbers is the
last one in the unsorted list of numbers BUT when I come to check
the sorted list it is not in the list of four least numbers. An
example of a recent list is a follows:
beginning of unsorted list
222
461
215
552
508
344
end of unsorted list
beginning output of sorted list
215
222 (344 should come after 222)
461
508
end of sorted list
I have made a number of runs and with the same results the last number
in the unsorted list isn't included in the sorted list.
Any help?
Fred Katzel
------------------
It appears that I am having problem with ARRAY SORT. I generate a
list of random numbers then have the compute sort them using ARRAY
SORT. I then wish to use the first four lowest numbers. However, I
have noticed that generally one of the four wanted numbers is the
last one in the unsorted list of numbers BUT when I come to check
the sorted list it is not in the list of four least numbers. An
example of a recent list is a follows:
beginning of unsorted list
222
461
215
552
508
344
end of unsorted list
beginning output of sorted list
215
222 (344 should come after 222)
461
508
end of sorted list
I have made a number of runs and with the same results the last number
in the unsorted list isn't included in the sorted list.
Any help?
Fred Katzel
------------------
Comment