powered by
Given a matrix, rearranges rows and columns so that row sums and col sums end up in ascending order.
sort_matrix(M)
rearranged matrix
matrix