From: Stephen White Date: 2001-07-15T05:34:11+09:00 Subject: [ruby-talk:17853] Re: Ruby Idioms On Sun, 15 Jul 2001, Stephen White wrote: > one = ahash.keys.sort.map {|i| ahash[i]} > > two = ahash.sort {|i,j| i[0] <=> j[0]}.map {|i,j| j} Sigh. I thought of this after posting... two = ahash.sort.map {|i,j| j} -- spwhite@chariot.net.au