foreach (sort $hash{$a} cmp $hash{$b} keys %hash) [download]
In reply to sort hash by value by Anonymous Monk