Sorts the columns of argument matrix R in increasing order.
srtdR = gtm_sort(R)
R
- an (unsorted) matrix
srtdR
- the corresponding sorted matrix
The m-file implementation is simply an alias for MATLAB's built-in sort function. However, if a corresponding mex-file exists, this will be used instead; experience has shown that a C-implementation of (e.g.) quicksort works much faster.