Forums > MaxMSP

organize list

June 19, 2009 | 9:20 am

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


June 19, 2009 | 10:01 am

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

Ivan Reshetilov

June 19, 2009 | 10:19 am

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.

June 19, 2009 | 10:47 am

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

June 19, 2009 | 2:36 pm

You can also do everything in zl:

— Pasted Max Patch, click to expand. —
June 23, 2009 | 1:03 pm

thanks! sort message is what i needed.

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP