This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Sorting data points
- From: "Deosaran Bisnath" <dbisnath at rave-tt dot net>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Sun, 5 May 2002 08:05:02 -0300
- Subject: Sorting data points
- References: <OE47Hv032jUTK3PcEzp000048be@hotmail.com> <02050112374901.01118@sathis> <OE28V1qdiixjnzi95Hf00007015@hotmail.com>
- Reply-to: "Deosaran Bisnath" <dbisnath at rave-tt dot net>
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