title: gnu sort produces different results on MacOS Linux
body: <p>I am trying to get the same GNU sort output on MacOS Mavericks and Linux Centos 6.5. I have installed the latest 'brew' gsort on MacOS. I get different output results from the sort on both platforms when sorting exactly the same file: specifically how the '#' character is handled. Here are the first lines of the sorted files where you can see the difference very clearly:</p>
  
  <p>MacOS brew gsort:</p>
  
  <pre><code>SENT_ID1###de peu ||| and gustav stresemann ||| 1.0&lt;br/&gt;
  SENT_ID1###en compagnie d' aristide briand ||| only just missed achieving ||| 1.0&lt;br/&gt;
  SENT_ID1###et de gustav stresemann ||| their aim ||| 1.0&lt;br/&gt;
  SENT_ID1###il a manqué cet objectif ||| he and aristide briand ||| 1.0&lt;br/&gt;
  SENT_ID10###dans le même esprit ||| still ||| 1.0&lt;br/&gt;
  SENT_ID10###de comblement ||| with the same aim of making good ||| 1.0&lt;br/&gt;
  SENT_ID10###de nos institutions européennes ||| of institutional democracy ||| 1.0&lt;br/&gt;
  </code></pre>
  
  <p>etc.</p>
  
  <p>Same file on CentOS with 'sort':</p>
  
  <pre><code>SENT_ID10000###car il constitue l' ||| as it constitutes ||| 1.0&lt;br/&gt;
  SENT_ID10000###de ce débat ||| of this debate ||| 1.0&lt;br/&gt;
  SENT_ID10000###nous pensons ||| we think ||| 1.0&lt;br/&gt;
  SENT_ID10000###que ce paragraphe aurait mérité ||| that this section would have merited ||| 1.0&lt;br/&gt;
  SENT_ID10000###un des défis majeurs ||| one of the major challenges ||| 1.0&lt;br/&gt;
  
  SENT_ID10000###un plus ample développement ||| further development ||| 1.0&lt;br/&gt;
  SENT_ID10001###à aucune règle si ce n' est celle du marché ||| only to market rules ||| 1.0&lt;br/&gt;
  SENT_ID10001###ces systèmes complémentaires ||| these supplementary systems ||| 1.0&lt;br/&gt;
  SENT_ID10001###en augmentation ||| which are increasing ||| 1.0&lt;br/&gt;
  SENT_ID10001###ne sont soumis ||| are subject ||| 1.0&lt;br/&gt;
  </code></pre>
  
  <p>etc.</p>
  
  <p>The zero character has precedence over 'hash' character in sort terms under CentOS and as you can see the sort order is completely different. The gsort MacOS sort order is the one I would expect. Can anyone enlighten me as to why the CentOS sort order is wrong and how I can correct this?</p>