# Sort a matrix by descending value for every row in order

I have a matrix which I want ordered by every column. Probably better to show the before and after. This is the matrix before. thematrix_before <- structure(c(0, 0, 0, 0, 0, 0.44, 0.68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.42, 0.39, 0, 0, 0, 0, 0, 0.35, 0, 0, 0,… Read More Sort a matrix by descending value for every row in order