From: Gregory Brown Date: 2009-05-07T07:16:40+09:00 Subject: Re: sort and localization On Wed, May 6, 2009 at 4:50 PM, Giampiero Zanchi wrote: > Hi to all > I'm trying to solve projecteuler problem 022 > (http://projecteuler.net/index.php?section=problems&id=22) but with no > success. I suspect it may depend on localization of ruby sort (???). So > my question is: may ruby sort change due to the localization of the > machine it is running on? Sort is done by ASCII sort order on Ruby 1.8. Not sure on Ruby 1.9, but my guess is that it does not assume anything about 'alphabetical order', but uses character codes instead. (Causing the same problem) -greg