<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    olá Luciano<br>
    <br>
    segue sugestão:<br>
    <br>
    ## linux<br>
    "AB CD" > "ABCD" <br>
    sort(c("AB CD","ABCD")) <br>
    order(c("AB CD","ABCD"))<br>
    <br>
    old = Sys.getlocale("LC_COLLATE")<br>
    Sys.setlocale("LC_COLLATE", "C") <br>
    <br>
    "AB CD" > "ABCD" <br>
    sort(c("AB CD","ABCD")) <br>
    order(c("AB CD","ABCD"))<br>
    <br>
    Sys.setlocale("LC_COLLATE", old)<br>
    <br>
    aqui há uma boa discussão sobre o assunto:<br>
<a class="moz-txt-link-freetext" href="http://r.789695.n4.nabble.com/difference-in-sort-order-linux-Windows-R-2-11-0-td2234251.html">http://r.789695.n4.nabble.com/difference-in-sort-order-linux-Windows-R-2-11-0-td2234251.html</a><br>
    <br>
    aqui um pouco sobre unicode:<br>
    <a class="moz-txt-link-freetext" href="https://pt.wikipedia.org/wiki/Unicode">https://pt.wikipedia.org/wiki/Unicode</a><br>
    <br>
    saudações<br>
    <br>
    <div class="moz-cite-prefix">Em 19/02/2016 13:19, Luciano F. Sgarbi
      escreveu:<br>
    </div>
    <blockquote
cite="mid:CAJpKj8=hsK2xWJY8UOKVVEXMffhFLM8PVxMoMh5hGaYqQDHDpA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default" style="">
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">Boa tarde pessoal.</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">Tentei ordenar um mesmo vetor no R usando
              Linux ou Windows e os resultados foram diferentes. </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">#linux</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">> sort(c('AB CD','ABCD'))</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">[1] "ABCD"  "AB CD"</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">#windows</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">> sort(c('AB CD','ABCD'))</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">[1] "AB CD" "ABCD"</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">Pelo que eu consegui entender, o problema está
              relacionado ao "LOCALE" usado por cada uma dos sistemas...
              estou certo?</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">Alguém saberia dizer qual o motivo disso, e
              como posso fazer com que os dois sistemas gerem os mesmos
              resultados?</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">De preferência quero tornar o resultado do
              Linux igual ao do Windows. Ou seja, quero alterar as
              configurações do R no Linux</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">Abraços,</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">Luciano</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">ps:</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">Informações das seções:</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">##UBUNTU</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">> sessionInfo()</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">R version 3.2.2 (2015-08-14)</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">Platform: i686-pc-linux-gnu (32-bit)</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">Running under: Ubuntu precise (12.04.5 LTS)</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">locale:</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"> [1] LC_CTYPE=pt_BR.UTF-8       LC_NUMERIC=C  
                          LC_TIME=pt_BR.UTF-8      
               LC_COLLATE=pt_BR.UTF-8    </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"> [5] LC_MONETARY=pt_BR.UTF-8  
               LC_MESSAGES=pt_BR.UTF-8    LC_PAPER=pt_BR.UTF-8      
              LC_NAME=C                 </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"> [9] LC_ADDRESS=C               LC_TELEPHONE=C
                          LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=C
                    </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">attached base packages:</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">[1] stats     graphics  grDevices utils    
              datasets  methods   base     </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">loaded via a namespace (and not attached):</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">[1] tools_3.2.2</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">> sort(c('AB CD','ABCD'))</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">[1] "ABCD"  "AB CD"</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">###WINDOWS</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">> sessionInfo()</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">R version 3.2.1 (2015-06-18)</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">Platform: x86_64-w64-mingw32/x64 (64-bit)</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">Running under: Windows 7 x64 (build 7601)
              Service Pack 1</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">locale:</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">[1] LC_COLLATE=Portuguese_Brazil.1252
               LC_CTYPE=Portuguese_Brazil.1252  
               LC_MONETARY=Portuguese_Brazil.1252</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">[4] LC_NUMERIC=C                      
              LC_TIME=Portuguese_Brazil.1252    </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">attached base packages:</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">[1] stats     graphics  grDevices utils    
              datasets  methods   base     </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">loaded via a namespace (and not attached):</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">[1] tools_3.2.1</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif"><br>
            </font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">> sort(c('AB CD','ABCD'))</font></div>
          <div class="gmail_default" style=""><font face="tahoma,
              sans-serif">[1] "AB CD" "ABCD"</font></div>
        </div>
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div><font color="#444444" face="arial, helvetica,
                    sans-serif" size="2">Luciano F. Sgarbi</font></div>
                <div><font color="#444444" face="arial, helvetica,
                    sans-serif" size="2"><a moz-do-not-send="true"
href="http://buscatextual.cnpq.br/buscatextual/visualizacv.do?id=K4299200T7"
                      target="_blank"> Currículo Lattes</a></font></div>
                <div><font face="arial, helvetica, sans-serif" size="2"><font
                      color="#444444">Laboratório de Ecologia Teórica e
                      Síntese<br
                        style="background-color:rgb(255,255,255)">
                    </font><span style="color:rgb(68,68,68)">Departamento
                      de Ecologia, Instituto de Ciências Biológicas V.</span><font
                      color="#444444"><br>
                    </font></font>
                  <div style="background-color:rgb(255,255,255)"><font
                      color="#444444" face="arial, helvetica,
                      sans-serif" size="2"><font>Universidade Federal de
                        Goiás, campus II, Goiânia-GO, </font>Brasil</font></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
R-br mailing list
<a class="moz-txt-link-abbreviated" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a>
<a class="moz-txt-link-freetext" href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a>
Leia o guia de postagem (<a class="moz-txt-link-freetext" href="http://www.leg.ufpr.br/r-br-guia">http://www.leg.ufpr.br/r-br-guia</a>) e forne�a c�digo m�nimo reproduz�vel.</pre>
    </blockquote>
    <br>
  </body>
</html>