Matrix where each row contains sorted column values.
Syntax: @rowsort(m[, o])
m: matrix, vector
o: (optional) o
Return: matrix, vector
Returns a matrix where each row contains the sorted values of the corresponding row of m.
The option o controls the direction of the ranking: āaā (ascending - default) or ādā (descending).
Examples
matrix a = @rowsort(m1, "d")
Cross-references