http://www.perlmonks.org?node_id=543177


in reply to Cutting the top percentage out of a Hash

Hashes aren't stored sorted in Perl. You can sort the data bofore you put it in the hash, but the data is stored in an arbitrary order. If you need the contents of the hash sorted, you need to the sort the data as you pull it from the hash.

Ivan Heffner
Sr. Software Engineer, DAS Lead
WhitePages.com, Inc.