Two errors: my $keys should be my @keys, and it's sorting by descending key while it should sort by descending value.
In reply to Re^3: algorithm question: want to sort keys of hash by their values.
by ikegami
in thread algorithm question: want to sort keys of hash by their values.
by downer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |