Hello Wai-Sun,

Wednesday, October 30, 2002, 2:15:00 PM, you wrote:

>> WSC>         "baz"=>["fee","fi","fo","fum"],
>> WSC> I want to be able to sort them in the order of the array size
>> 
>> WSC> What is the scalable way to do this? I'm looking at scaling these hashes 
>> WSC> beyond 50K...
>> 
>> maximum size of this arrays (in real world)?

WSC> Anything between 100K to 200K

50k hash entries each sized up to 200k? good :)

hash.to_a.sort {|a,b| a[1].size <=> b[1].size}



-- 
Best regards,
 Bulat                            mailto:bulatz / integ.ru