From: Michael Joner Date: 2002-01-06T14:35:10+09:00 Subject: [ruby-talk:30333] Re: Sorting a Hash by value of integer stored in the Hash On Sun, 06 Jan 2002 01:53:25 GMT Yohanes Santoso wrote: > irb(main):011:0> myh = {"z"=>5,"x"=>3,"y"=>7} > irb(main):012:0> myh.sort{|a,b| a[1] <=> b[1]} > [["x", 3], ["z", 5], ["y", 7]] > > Does that do? Yes and the nice thing is I that I think I even understand HOW it works. Thanks. Mike