From: "Iñaki Baz Castillo" Date: 2011-06-22T01:26:24+09:00 Subject: Re: How to order a hash based on its keys? 2011/6/21 Robert Klemme : > See Adam's and Josh's replies: a Hash is generally unordered. > However, what do you need this for?  If it is for debugging purposes > then you might as well override #inspect on a per instance basis or > change it in Hash (not recommended). Hi, I don't understand your comment. > If you need that for other > reasons then maybe a tree might be a better choice.  There is for > example > http://raa.ruby-lang.org/project/ruby-rbtree/ -- Iñaki Baz Castillo