[R] lexicographic sort
    Makram Talih 
    makram.talih at yale.edu
       
    Fri Mar 15 23:33:17 CET 2002
    
    
  
Hello,
What is the rule R uses for lexicographical sort. For example,
sort("b","a") returns [1] "a" "b"
sort("b", " ") returns [1] " " "b"
which seems to imply a space character has priority. But
sort("jam on", "jambon") returns [1] "jambon" "jam on"
Why does the rule change? Any hints/suggestions?
Cheers,
Makram.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
    
    
More information about the R-help
mailing list