rows_sort
Treat the rows of matrix as vectors and sort each row in ascending or descending order
Arguments
- Matrix
- String 'a' or 'd', 'a' for ascending and 'd' for descending order
Output
Resulting matrix
Examples
Treat the rows of matrix as vectors and sort each row in ascending or descending order
Resulting matrix