From: Francis Rammeloo Date: 2008-05-19T03:44:05+09:00 Subject: Re: Array.sort with bignum fails? ------=_Part_3002_5737409.1211136244443 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You are using an array of strings, they are sorted alphabetically. 2008/5/18 Rg Rg : > I have a array with big numbers and sort method does not order it > correctly. > > irb(main):017:0> a = [ "8412478247689", "25977", "88582", > "8410347003107" ] > => ["8412478247689", "25977", "88582", "8410347003107"] > irb(main):018:0> a.sort > => ["25977", "8410347003107", "8412478247689", "88582"] > irb(main):019:0> > > > Exists some other form to order the Array? > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_3002_5737409.1211136244443--