I really need help:(
I have a 2x367 matrix, where the first entry in each row indicates the number of the feature and the second one the number of occurences. I managed to sort them row by row, but I want to sort them pairwise.
So my data looks like:
2490 1
44 512 ......
indicating that I have feature 2490 44 times and 1 512 times. I want to put feature 1 in front but together with the 512..Thanks!