Hi,
On 27/07/10 12:56, Libero Mureddu wrote:
Hello, I'm trying to realize something like that: I have different lists that I have to sort in ascending order according to their first element, but I cannot find a solution.
It's a tricky one in vanilla Pd.
In other words I'd like to have the lists (1 a b c) (5 d e f) (3 g h i)
ordered in this way: (1 a b c) (3 g h i) (5 d e f)
If you have pd-lua, try the attached, it's not totally perfect (ie, no checking for lengths of lists so if you try to sort by an index that is too big you get errors) but it works for your example.
thanks a lot,
Libero