Farrel Lifson
2/15/2007 12:37:00 PM
On 15/02/07, Une Bévue <unbewusst.sein@google.com.invalid> 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