Command Reference : Matrix Language Reference
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).
matrix a = @colsort(m1, "d")
See also @rowsort, @sort, @ranks, @capplyranks, @permute, and @colranks.