From: Farrel Lifson Date: 2007-02-15T21:37:28+09:00 Subject: Re: sorting an array of hash On 15/02/07, Une B�vue wrote: > i do have an array of hashes like that : > > {type => aType, description => aDescription, extension => aExtension} > > i'd like to sort this array by hash['type'], how to do that ? > > > this array represent the MIME Types. > > -- > Une B�vue > > arrayOfHashes.sort_by{|hash| hash['type']} Farrel