Forums > MaxMSP

line not index coll sort -1 0

August 12, 2011 | 9:49 pm

Hello,
i guess its pretty easy to do but i still didn’t find a way to do it.
i got list (the number of the list are always changing) entering to a coll and i want to sort them with "sort -1 0" so for example i got :
1, 2 3
2,1 2
3,6 3

that will become:
2,1 2
1, 2 3
3,6 3

i want then to dump the first line, but if i send a "1" message i dont get the line 1 but the index 1
how could i do this?

merci!


August 12, 2011 | 10:14 pm

after sorting use the message (renumber)– that should renumber the indexes for you, then send the (1) message after that


August 12, 2011 | 10:17 pm

Thank you!
this is exactly what i was trying when i opened your email!


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