[PD] sorting a 2 dimension list solution

Thomas Ouellet Fredericks iamonthebeach at hotmail.com
Sat Feb 19 00:49:55 CET 2005

Thanks for all the suggestions.
I can not compile on my computer right now, so I made a little abstraction : 
Its a multidimensional sort thingy. Requires ZEXY.


----- Original Message ----- 
From: "Frank Barknecht" <fbar at footils.org>
To: <pd-list at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: biggest.zip
Type: application/x-zip-compressed
Size: 1103 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20050218/992934c7/attachment.bin>

More information about the Pd-list mailing list