sort lists

Nov 7, 2011 at 11:42pm

sort lists

Hi everyone,

I need to sort lists based on one number of each list.

For example I need to zl sort each list in relation to the second number from low to high like this:

2 300 40
5 100 20
7 200 30

to

5 100 20
7 200 30
2 300 40

Any suggestions?

Thanks!

#59877
Nov 8, 2011 at 12:00am

The [coll] object can sort stored lists by whichever index you specify:

– Pasted Max Patch, click to expand. –
#215560
Nov 8, 2011 at 1:55pm

thanks! but I need more something that sorts the 3 lists immediately (no latency), without storing anything.

[attachment=175648,2853]

Attachments:
  1. .jpg
#215561
Nov 8, 2011 at 2:45pm
– Pasted Max Patch, click to expand. –
#215562
Nov 8, 2011 at 2:45pm

@oliver

Your request seems a bit naive. How can you sort a sequence of items without collecting them?

#215563

You must be logged in to reply to this topic.