From: "list. rb" Date: 2007-06-28T12:46:23+09:00 Subject: Re: Array Problem, sort Array ------=_Part_46041_32949009.1183002385889 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline ["a", "a", "a", "b", "b", "c", "c", "c","d", "d", "e", nil].compact.uniq.sort On 6/27/07, Cool Wong wrote: > > List Rb wrote: > > ["a", "a", "a", "b", "b", "c", "c", "c","d", "d", "e"].uniq.sort > > > > array = ["a", "a", "a", "b", "b", "c", "c", "c","d", "d", "e"].uniq.sort > > > > puts array.join("WOOT!\n") > > if the array include the "nil", it cannot sort, why?? > > ["a", "a", "a", "b", "b", "c", "c", "c","d", "d", "e", nil].uniq.sort > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_46041_32949009.1183002385889--