in reply to sort empty string

You can alway define your own sort sub. Here's an example I found in the Camel book.
sub byage { $age{$a} <=> $age{$b}; } @sorted = sort byage @class;