From: Jos Backus Date: 2006-12-07T11:08:04+09:00 Subject: Re: Can't sort array On Wed, Dec 06, 2006 at 09:17:45AM +0900, Li Chen wrote: > The line above doesn't work but it will work if change to the follows > > p m.sort{|a,b| a.name <=> b.name} p m.sort_by {|a| a.name} -- Jos Backus jos at catnook.com