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 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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to