From: Peter Fitzgibbons Date: 2005-08-26T00:54:31+09:00 Subject: Win32ole object collection mapping to array ? ------_=_NextPart_001_01C5A98D.453C8238 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello all, I have a win32ole object collection that I want to map, then sort, to an array? Each item has #Name property. I'm thinking of making an arry of hashes a'la : > items =3D [] > oleItems.each {|o| items << {o.Name =3D> o} } > items [{"0172"=3D>#}, {"0171"=3D>#}] But then, how do I sort the array of hashes ? Is there a better approach ? Peter J. Fitzgibbons Applications Manager Lakewood Homes - "The American Dream Builder"(r) Peter.Fitzgibbons@Lakewoodhomes.net (847) 884-8800=20 ------_=_NextPart_001_01C5A98D.453C8238--