Hello Yukihiro, Wednesday, October 30, 2002, 3:22:28 PM, you wrote: YM> Hi, YM> In message "Re: Sorting HUGE hashes" YM> on 02/10/30, "Bulat Ziganshin" <bulatz / integ.ru> writes: YM> |hash.to_a.sort {|a,b| a[1].size <=> b[1].size} YM> Or YM> hash.sort_by{|a|a[1].size} btw, sort_by definition is only one line so he can decide on base of speed/memory tradeoff instead of seeing at ruby version he can use -- Best regards, Bulat mailto:bulatz / integ.ru