Re: question about sequence sorting
- Posted by Irv Mullins <irv at ELLIJAY.COM> May 09, 1999
- 568 views
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). I think this is the reason for the custom_sort() routine. Take a look a csort.ex in the demo directory for an example. Irv