Command Reference : Matrix Language Reference
  
 
@rowsort
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
See also @sort, @colsort, @ranks, @rapplyranks, @permute, and @rowranks.