From ripley@stats.ox.ac.uk  Tue Sep 28 15:44:52 1999
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Tue, 28 Sep 1999 16:44:52 +0200 (MET DST)
Subject: Collating sequences are used inconsistently. (PR#289)
Message-ID: <199909281444.QAA14157@pubhealth.ku.dk>

R 0.65.0 (and all others I have seen), Solaris 2.6.

> sort(c("a", "A", "b", "B"))
[1] "A" "a" "B" "b"
> "a" < "B"
[1] FALSE

in the en_UK locale. I don't think it is good idea that sort and <
have a different idea of ordering, so I rate this as a bug. As far as I can
see sort uses strcoll and hence the locale, and < uses ASCII.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Collating sequences are used inconsistently. (PR#289)
ripley@stats.ox.ac.uk