From: Harry Kakueki Date: 2012-10-20T16:20:20+09:00 Subject: Re: Hash with Integer key issue > > # And here is the problem! Now that I am looking at it here, it's > obvious that the sort is flattening the Hash... Is there a way to > restore it to a Hash, or a better way to achieve the sort? > Or you could generate it like this. It depends on what you are trying to do. x = Hash.new 49.downto(1).each { |y| x[y] = y-2 } p x Harry