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