From: "Jan E." Date: 2012-07-02T21:24:57+09:00 Subject: Re: how to sort this nested hash Hi, Like Jesus already said, you cannot sort a Hash. But of course you can build a new Hash based on the sorted key. A Hash actually *is* ordered by the order of which you inserted the values (I think this was introduced in Ruby 1.9). Apart from that I agree with Jesus that the structure is much too complex. It's almost unreadable, a pain to process and very error-prone (you rely on a certain structure which isn't enforced at all). You should definitely switch to an object structure with *meaningful* entities. -- Posted via http://www.ruby-forum.com/.