From jeffreys at rand.org  Mon Dec 21 20:40:09 2009
From: jeffreys at rand.org (jeffreys at rand.org)
Date: Mon, 21 Dec 2009 20:40:09 +0100 (CET)
Subject: [Rd] sort yields different results on OS X (PR#14163)
Message-ID: <20091221194009.4E4882830319@mail.pubhealth.ku.dk>

Full_Name: Jeffrey Sullivan
Version: 2.10
OS: Mac
Submission from: (NULL) (130.154.0.250)


Sort produces different results when sorting strings with non-alphanumeric
characters, depending on the operating system:

RHEL 5.2, R 2.10.0
-------------
> v <- c("1","<0",">3","2")
> Sys.setlocale("LC_COLLATE","en_US.UTF-8")
[1] "en_US.UTF-8"
> sort(v)
[1] "<0" "1"  "2"  ">3"

Max OS 10.5.8, R 2.10.1
-------------------
> v <- c("1","<0",">3","2")
> Sys.setlocale("LC_COLLATE","en_US.UTF-8")
[1] "en_US.UTF-8"
> sort(v)
[1] "<0" ">3" "1"  "2"



[Rd] sort yields different results on OS X (PR#14163)
jeffreys at rand.org