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?

thanks,
J.

#44448
Jun 19, 2009 at 10:01am

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

Ivan Reshetilov
http://www.ivanreshetilov.co.uk

#159849
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.
thanks!

#159850
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
http://www.ivanreshetilov.co.uk

#159851
Jun 19, 2009 at 2:36pm

You can also do everything in zl:

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

thanks! sort message is what i needed.

#159853

You must be logged in to reply to this topic.