Hi,
I have a question regarding use of a sorting algorithm. Suppose I have a file as follows:
103 32
329 45
340 24
334 43
452 40
What I would like to do is sort each row in ascending order based on the second column value. So if I wanted to sort this, I would have
340 24
103 32
452 40
334 43
329 45
Any suggestions on how to do this?
I have a question regarding use of a sorting algorithm. Suppose I have a file as follows:
103 32
329 45
340 24
334 43
452 40
What I would like to do is sort each row in ascending order based on the second column value. So if I wanted to sort this, I would have
340 24
103 32
452 40
334 43
329 45
Any suggestions on how to do this?