Since nobody mentioned it yet: You might find Tie::Hash::Sorted useful.
In reply to Re: Sorting a hash in one line by jau in thread Sorting a hash in one line by rachitmohta11