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