organize list

Jun 19, 2009 at 9:20am

organize list

hello all,
does anyone know an object/external which permits to organize a list by increasing order?


Jun 19, 2009 at 10:01am

Have you tried the zl object? That has a whole bunch of organizing functions.

Ivan Reshetilov

Jun 19, 2009 at 10:19am

yes, zl sort is pretty useful,
in fact i’ve got a list of couples (x,y) that i need to organize by x’s increasing.
i think combining zl sort and coll objects will be ok.

Jun 19, 2009 at 10:47am

No problem! And if you’ve got pairs of numbers, you don’t need zl at all. Just store the numbers in ‘coll’, and send it the message ‘sort -1 -1′, which will sort the pairs ascending by the first number (index).

Ivan Reshetilov

Jun 19, 2009 at 2:36pm

You can also do everything in zl:

– Pasted Max Patch, click to expand. –
Jun 23, 2009 at 1:03pm

thanks! sort message is what i needed.


You must be logged in to reply to this topic.