sub by_priority { for ( qw(Organization Service FAQ) ) { return -1 if $a =~ /^$_/; return 1 if $b =~ /^$_/; } return $a cmp $b; }