powered by
Sorts a matrix by first column, breaking ties with second column, breaking those ties with 3rd, etc.
colSort(X)
Same matrix with rows permuted according to sort order.
matrix to sort.