Wednesday, November 20, 2013

Perl: sort hash values by keys

my @sorted_values = @hash{sort {$a <=> $b} keys %hash};