in reply to Sort hash values with one key in reverse
You may also want to consider if the Schwartzian Transform is appropriate.@hashes = sort { $b->{flag} <=> $a->{flag} || $a->{name} cmp $b->{nam +e} } @hashes;
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sort hash values with one key in reverse
by timecatalyst (Acolyte) on Apr 11, 2006 at 16:55 UTC |