Hashes are unsorted by definition. The most common case is that you just want them sorted on output, in which case see for example How do I sort a hash (optionally by value instead of key)?, as well as Data::Dumper's Sortkeys option. If you really, really need to store them in a sorted order, see How can I always keep my hash sorted? (although sometimes people will solve this by simply keeping an array with the names of the keys in a sorted order, and use that to iterate over the hash)
In reply to Re: Sort Hash of hashes
by Anonymous Monk
in thread Sort Hash of hashes
by lobs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |