From: Isaac Sanders Date: 2011-11-02T13:00:57+09:00 Subject: Re: Sort order dilemma --000e0cd52da6d2164c04b0b8842c Content-Type: text/plain; charset=ISO-8859-1 Errr, yah. I almost had it there. sry, I was doing calc hw, and saw the message, the thought didn't process.... On Tue, Nov 1, 2011 at 11:49 PM, Yossef Mendelssohn wrote: > 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 > > -- Sincerely, Isaac Sanders Section C-4B Vice Chief, Order of the Arrow Vice Chief of Administration, Tecumseh #65 Eagle Scout --000e0cd52da6d2164c04b0b8842c--