my @sort_keys = qw(director title id type); use List::Util 'first'; sort { first {$a->{$_} cmp $b->{$_}} @sort_keys } @recs;
In reply to Re: sub-sorting a hash
by Roy Johnson
in thread sub-sorting a hash
by alexxx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |