Not sure from your message your trying to do. But from my level of
training I see a bunch of loops working on the entire data in some manner.
If you want to make just a single line of assending size it will be
simple. What you show is impossible, or I don't understand.
On Sat, 13 Jun 1998, Ibrahim F Haddad wrote:
> Hello all,
>
> Given a file that contains data of the following format:
>
> 7.606565 5.404950
> 4.969272 4.597600
> 4.969272 4.597600
> 2.400000 3.486746
> 3.000000 3.672252
> 3.600000 3.766663
>
>
> How to sort it in increasing order of the x column so
> after sorting it looks like that:
>
> 2.400000 3.486746
> 3.000000 3.672252
> 3.600000 3.766663
> 4.969272 4.597600
> 4.969272 4.597600
> 7.606565 5.404950
>
> please note that duplicate entries may exist.
>
> Thank you very much.
>
> -ibrahim
>
Best wishes
- Karl F. Larsen, 3310 East Street, Las Cruces,NM (505) 524-3303 -