in reply to Sorting keys of hash table by values

@sortedKeys = sort { $h{$b} <=> $h{$a} } keys %h;

-sam