in reply to Efficiently sorting array by non-alpha strings

Use a hash to remap your field.
my %h = ( National => 3, State => 2, Local => 1 ); my @sorted_advocates = sort { $h{$a->{fld_type}} <=> $h{$b->{fld_type} +} } @advocates;
Boris