From: Yossef Mendelssohn Date: 2011-11-02T12:49:30+09:00 Subject: Re: Sort order dilemma On Nov 1, 11:34 pm, Isaac Sanders wrote: > http://www.ruby-doc.org/core-1.9.2/Array.html#method-i-sort > > arr.sort do |x,y| >   if x.length < y.length >     return 1 >   elsif x.length > y.length >     return -1 >   else >     x <=> y >   end > end You should probably try the code you're providing as a solution. That cuts down on the stuff that a) raises exceptions, and b) doesn't solve the problem even when the exceptions are gone. -- -yossef