Ooops, that was answering the question you actually asked. The one you meant to ask is answered by this part: The sort order for character vectors will depend on the collating sequence of the locale in use: see Comparison. Peter Dalgaard demonstrating his mind-reading skills when answering questions about sorting characters R-help March 2016