From: Dark Ambient Date: 2006-07-10T01:03:27+09:00 Subject: Re: Sorting arrays ------=_Part_129687_22000471.1152461001648 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/9/06, dblack@wobblini.net wrote: > I don't see that in your code. I see this: > > lowest = nil > > So this: > > lowest == nil > > is true. Sorry I'm not trying to be frustrating. def sort(list) sorted = [] unsorted = [] lowest = nil <----------- here lowest is being set to nil list.each do |item| if lowest == nil || item < lowest <----then expression 1 is true (as you say above). lowest = item end end I might just be missing a brain, because it seems like it's not sinking through. Stuart ------=_Part_129687_22000471.1152461001648--