my %sorted = ....
Everybody repeat after me: YOU CAN NOT SORT A HASH!
Hashes are unordered. Attempting to sort them just gets you a list which is stuffed back into a hash which has no internal order. You can get a sorted list of keys or values, but you can not sort a hash.
In reply to Re^2: Sorting a Hash Ref
by friedo
in thread Sorting a Hash Ref
by bkiahg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |