This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Sorting data points


I am new to linux g++ & am not sure how to do this. Your help is most
welcome

there are about 50 data points like this, x and y

x             y
2.4          1
67.21       2
1.9           3
211.45      4


I want to sort x in ascending or descending order so the above are arranged
like this:

x              y
211.45      4
67.21        2
2.4            1
1.9            3


what is the fastest way to do this? thanks




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]