[Rd] sort yields different results on OS X (PR#14163)
jeffreys at rand.org
jeffreys at rand.org
Mon Dec 21 20:40:09 CET 2009
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"
More information about the R-devel
mailing list