A hash cannot be sorted, as its keys have no order. You need to generate your list from the hash, then sort that list. This is a FAQ. Please (again!) read perlfaq4, this time on How do I sort a hash (optionally by value instead of key)?.
In reply to Re^3: sorting hash by a certain value (that it is in an array)
by Corion
in thread sorting hash by a certain value (that it is in an array)
by gooyava
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |