Or, you can use Tie::SortHash to sort your hashes? Docs are here.
In reply to Re: sort a hash array by Jazz in thread sort a hash array by fuzzysteve