From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: 2007-02-15T21:50:08+09:00 Subject: Re: sorting an array of hash Farrel Lifson wrote: > arrayOfHashes.sort_by{|hash| hash['type']} fine thanks i did it that way : arr.sort!{|a1,a2| a1['type'] <=> a2['type']} is arrayOfHashes a special object in ruby ??? i didn't found #sort_by in the pikaxe pages for Array. -- Une B�vue