my %h = ( National => 3, State => 2, Local => 1 ); my @sorted_advocates = sort { $h{$a->{fld_type}} <=> $h{$b->{fld_type} +} } @advocates;
In reply to Re: Efficiently sorting array by non-alpha strings
by borisz
in thread Efficiently sorting array by non-alpha strings
by knowmad
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |