in reply to sort hashes....

Run this command

perldoc -q 'sort a hash'