powered by
Sorting rows
SortRows(m, cols = 1:dim(m)[2], index.return = FALSE)
sorted m
Øyvind Langsrud
SortRows(matrix(sample(1:3,15,TRUE),5,3))
Run the code above in your browser using DataLab