in reply to Re: sorting hashes by value
in thread sorting hashes by value

Another basic thing about sort you might want to know is that, you can determining the sroting order simply by the oder of $a and $b. If you have
@a = (1,3,2); sort {$a <=> $b} gives you (1,2,3), when sort {$b <=> $a} gives you (3,2,1)