Interfaces for the NAG Mark 27.1 sort Chapter.
sort - Sorting and Searching
This module is concerned with sorting and searching numeric or character data. It handles only the simplest types of data structure and it is concerned only with internal sorting and searching – that is, sorting and searching a set of data which can all be stored within the program.
If you have large files of data or complicated data structures to be sorted or searched you should use a comprehensive sorting or searching program or package.
columns of a matrix
rows of a matrix
Rearranging (according to pre-determined ranks)
Searching (i.e., exact match or the nearest lower value)
Sorting (i.e., rearranging into sorted order)
For full information please refer to the NAG Library document