in reply to Efficiently sorting array by non-alpha strings
my %h = ( National => 3, State => 2, Local => 1 ); my @sorted_advocates = sort { $h{$a->{fld_type}} <=> $h{$b->{fld_type} +} } @advocates; [download]