Forums > MaxMSP

sorting multiple lists by first number

August 12, 2008 | 2:43 pm

Hi,

Is there any way I can sort several pairs of numbers by the first number in each pair. So that

2 1
4 2
5 3
1 4
3 5

can become

1 4
2 1
3 5
4 2
5 3

??

Thanks in advance,
Jay


August 12, 2008 | 2:50 pm


August 12, 2008 | 2:54 pm

damn i’m still using the outdated 4.5


August 12, 2008 | 2:58 pm

look at the "sort" message to coll.

M

On Aug 12, 2008, at 10:43, Jay Bodley wrote:

>
> Hi,
>
> Is there any way I can sort several pairs of numbers by the first
> number in each pair. So that
>
> 2 1
> 4 2
> 5 3
> 1 4
> 3 5
>
> can become
>
> 1 4
> 2 1
> 3 5
> 4 2
> 5 3
>
> ??
>
> Thanks in advance,
> Jay


August 12, 2008 | 3:30 pm

oh yes, that’s right. thank you.


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