Stolen from this Q&A node, you can do a Schwartzian Transformation by doing:
my @sorted = map{ $_->[1] } sort { $b->[0] <=> $a->[0] } map{ [ $_->{size}, $_ ] } @{$aoh}; print Dumper \@sorted;
In reply to Re: How to sort by the key value of an Array of Hash structure?
by whakka
in thread How to sort by the key value of an Array of Hash structure?
by Jordy224
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |