Command Reference : Matrix Language Reference
  
 
@colsort
Syntax: @colsort(m[, order])
Argument1: matrix, m
Argument2: (optional) option, order
Return: matrix
Returns a matrix where each column contains the sorted values of the corresponding column of m. The option controls the direction of the ranking: “a” (ascending - default) or “d” (descending).
Example:
matrix a = @colsort(m1, “d”)
See also @rowsort, @sort, @ranks, @capplyranks, @permute, and @colranks.