organize list

salvadorpsartek's icon

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

thanks,
J.

ivanreshe's icon

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

salvadorpsartek's icon

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!

ivanreshe's icon

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).

Emmanuel Jourdan's icon

You can also do everything in zl:

Max Patch
Copy patch and select New From Clipboard in Max.

salvadorpsartek's icon

thanks! sort message is what i needed.