in reply to Sorting Hash

you can try
@keys = sort { $hash{$a} cmp $hash{$b} } keys %hash; # and by value
this question is quite common, use the search engine first,next time.

Thanks.

Hotshot