in reply to sorting hashes

See How do I sort a hash (optionally by value instead of key)?, or type perldoc -q 'sort a hash' on the command line.