Thanks for all the suggestions. I can not compile on my computer right now, so I made a little abstraction : BIGGEST. Its a multidimensional sort thingy. Requires ZEXY.
Tom
----- Original Message ----- From: "Frank Barknecht" fbar@footils.org To: pd-list@iem.at Sent: Thursday, February 17, 2005 4:56 PM Subject: Re: [PD] sorting a 2 dimension list
Hallo, Thomas Ouellet Fredericks hat gesagt: // Thomas Ouellet Fredericks wrote:
Please help, I can not figure this out:
How can I sort a multidimensional list by it's first element? I know of a way using [coll] (cyclone) but from my experience, [coll] is unstable.
Example : how do I sort the following list [[2,3],[7,4],[5,3],[6,7]] ? The result would be : [[2,3],[5,3],[6,7],[7,4]]
I'd suggest the Georg Holzmann's wonderful PDContainer externals for this, they are in CVS and provide various very useful data types. In your case, you can directly use "h_list" like in attached patch.
Ciao
Frank Barknecht _ ______footils.org__
_ __latest track: fqdn _ http://footils.org/cms/show/38