nag_rank_sort (m01dsc) ranks a set of
data objects of arbitrary type, which are stored in the elements of an array at intervals of length
stride. The ranks are in the range 0 to
.
Either ascending or descending ranking order may be specified.
nag_rank_sort (m01dsc) uses a variant of list merging as described by
Knuth (1973).
Not applicable.
The example program reads a list of real numbers and ranks them into ascending order.