From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: 2007-02-15T21:45:07+09:00 Subject: Re: sorting an array of hash Une B�vue wrote: > i'd like to sort this array by hash['type'], how to do that ? i did that that way : mime_types.sort!{|mime_type1,mime_type2| mime_type1['type'] <=> mime_type2['type'] } it's working very well ;-) -- Une B�vue