From: "Pål Bergström" Date: 2010-09-25T23:10:59+09:00 Subject: Re: Sort hash with keys as integer Y. NOBUOKA wrote: > p hash.sort { |a, b| a[0].to_i <=> b[0].to_i } I tried this myself but it didn't work. Now it did. Strange. Must have done something wrong before. Thanks :-) -- Posted via http://www.ruby-forum.com/.