My current matrix has 3 columns, the first columns is letters, second is numbers and the third is the first and second columns concatenated together. I am trying to sort the second column in decreasing order and have the other two columns change according to the middle column. This is the code i have but the result is not in decreasing order.
matrix1[order(matrix1[column2], decreasing = TRUE),]