Re: [Rd] sort - Windows and Linux

2008-05-27 Thread Prof Brian Ripley
This sort of thing does depend on the locale, but here I get the same answer on Windows and Linux (the order you give). So please give us much more complete information about what locales you used and what results you got. ?sort does say The sort order for character vectors will depend

Re: [Rd] sort - Windows and Linux

2008-05-27 Thread Gabor Grothendieck
This depends on the collating sequence of your locale. See ?Comparison On Tue, May 27, 2008 at 12:21 PM, Yohan Chalabi <[EMAIL PROTECTED]> wrote: > Dear all, > > While debugging a function I realized that > > sort(c(" 1", " 2", "10")) > > do not give the same result on Windows and Linux. > > This