Re: question about sequence sorting
- Posted by Lucius Hilley III <lhilley at CDC.NET> May 09, 1999
- 593 views
I have wanted to tackle this very thing. I just haven't done so as of yet. Sorting this way is actually rather trivial. All you have to do is take the 4th elements FROM the list and create a new list with them. then sort that list. BUT you must tag the position that those items originated from and use that tag to reorganize the other list to match that arrangement. PS: My site has now been slightly updated. Checkout THANKS TO. You just might be listed. Lucius L. Hilley III ICQ: 9638898 AIM: LLHIII http://www.cdc.net/~lhilley On Sun, 9 May 1999 04:57:05 +0100, colin ellis <noonian at SUNG79.FREESERVE.CO.UK> wrote: >Hi, Col22 (Colin Ellis) here with a little questionette. > >I have a sequence of x length, of sequences of 4 atoms. >e.g. >sequence snafu >snafu = {{1,3,5,8},{1,2,3,4}, ..... ,{1,3,5,7}} > >My question is, What would be the most efficient/(any) way of sorting >the sequences(of four) into ascending order (fourth atom in the sequence >being the one to sort by). > >help appreciated, >Thank you in advance, Col22 >