Posted on 2003-03-16
hello, i have a set of corrdinates which i want to put them into a matrix. i wish to sort them according to their x coordinates. eg, (2,5), (6,7), (3,4), (0,9) will be sorted to (0,9), (2,5), (3,4), (6,7). the java.util.Array.sort can onli sort a 1D array. how do i do this such tt it corresponds to the matlab command "sortrows()" ?