dpinto

0 Reputation

0 Badges

17 years, 202 days

MaplePrimes Activity


These are replies submitted by dpinto

You're right, of course. But if you wanted to sort on, say, the j-th element then use: L:=sort(L,(a,b)->evalb(a[j]evalb(a[2]evalb(a[1]

Here's maybe an easier way ...

L:=sort(L,(a,b)->evalb(a[1]<b[1]));

This will sort on the first element of each list where L is a list of lists.

 

DP

Page 1 of 1