From ggrothendieck at gmail.com  Tue May 27 18:51:14 2008
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Tue, 27 May 2008 12:51:14 -0400
Subject: [Rd] sort - Windows and Linux
In-Reply-To: <20080527182122.2acf7b31@mimi>
References: <20080527182122.2acf7b31@mimi>
Message-ID: <971536df0805270951x5831a238ybeadc280bf161b9d@mail.gmail.com>

This depends on the collating sequence of your locale.  See ?Comparison

On Tue, May 27, 2008 at 12:21 PM, Yohan Chalabi <chalabi at phys.ethz.ch> 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 is actually not surprising because white spaces are not handle in
> the same manner on these two platforms. But I was wondering if this
> behavior is also desired in R.
>
> regards,
> Yohan Chalabi
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] sort - Windows and Linux
Gabor Grothendieck