R sorts character vectors in a sequence which I describe as alphabetic, not ASCII.
For example:
sort(c("dog", "Cat", "Dog", "cat"))
[1] "cat" "Cat" "dog" "Dog"
Three questions:
- What is the technically correct terminology to describe this sort order?
- I can not find any reference to this in the manuals on CRAN. Where can I find a description of the sorting rules in R?
- is this any different from this sort of behaviour in other languages like C, Java, Perl or PHP?