Original Post
Is their an algorithm that sorts a matrix based on the first column or a vector array based on the first component of the vectors? example I have vector array or matrix: M = 9, 4, 7 4, 6, 7 5, 7, 3 2, 3, 8 after sort M = : 2, 3, 8 4, 6, 7 5, 7, 3 9, 4, 7 dg