But in short:
@keys now contains the sorted list of keys.@keys = sort { $hash{$b} <=> $hash{$a} } keys %hash;
In reply to Re: How do I sort a hash by its values?
by btrott
in thread How do I sort a hash by its values?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |