Command Reference : Matrix Language Reference
  
 
@colsort
Matrix where each row contains sorted row values.
Syntax: @colsort(m[, o])
m: matrix, vector
o: (optional) string
Return: matrix, vector
Returns a matrix where each column contains the sorted values of the corresponding column of m.
The option o controls the direction of the ranking: ā€œaā€ (ascending - default) or ā€œdā€ (descending).
Examples
matrix a = @colsort(m1, "d")
Cross-references
See also @rowsort, @sort, @ranks, @capplyranks, @permute, and @colranks.