in reply to Re: sorting hashes by valuein thread sorting hashes by value
@a = (1,3,2); sort {$a <=> $b} gives you (1,2,3), when sort {$b <=> $a} gives you (3,2,1) [download]