From: "Bartosz DziewoƄski" Date: 2011-11-05T04:00:10+09:00 Subject: Re: What happens in dual sorts with nil values? I didn't test it, but it looks like a bad idea ;) So don't compare nils. Just replace them with zeros or infinities (depending on whether you want them to end up at the start or end of list), for example like this: person.sort_by! { |a| [ a.last, a.first, a.age || 0 ]} (Note that this will also replace false values with zeros.) -- Matma Rex