I used the following list:@sorted = sort { unless ($a->{'name'} cmp $b->{'name'}) { $a->{age} <=> $b->{age} } } @data;
Which gets sorted to:jim 18 bob 24 bob 14 cathy 98 cathy 45
bob 14 bob 24 cathy 45 cathy 98 jim 18
In reply to Re: Advanced Sorting
by turnstep
in thread Advanced Sorting
by dsdisc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |