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


in reply to Not in order in Hash output

Just like arrays, hash return their elements in the order they are physically arranged in the hash. Hashes differ from arrays in that one cannot control the order in which elements are arranged, and the order can change whenever the number of hash element changes.