title: bash sorting -g for scientific notation (E values)
body: <p>I tried <code>sort</code> in bash using the <code>-g</code> option. I got the following output for <code>sort -g name.dat</code>:</p>
  
  <pre><code>1.2978025974026E+15  1.2800000000000E-28 3.1000000000000E-29 
  1.3565266968326E+13  3.9650000000000E-26 1.0000000000000E-29 
  1.3879277777778E+14  2.5900000000000E-27 6.6000000000000E-28 
  2.4176806451613E+14 .........................................
  </code></pre>
  
  <p>Only the first few digits are sorted (e.g., <code>1.29 &lt; 1.35 &lt; 1.38</code>), but the order isn't actually correct because the scientific notation exponent (<code>E+15</code>) is being ignored.</p>
  
  <p>I also tried <code>sort -k 1 -n name.dat</code> and <code>sort -k 1 -g name.dat</code>, but those don't work either. Changing the <code>E</code> to <code>e</code> also doesn't work.</p>