title: C#: Array.Sort method for double?
body: <p>I have an array ( double ) : ox_test with a known number of elements.</p>
  
  <p>when I code :</p>
  
  <pre><code>Array.Sort(ox_test);
  </code></pre>
  
  <p>and then, just to see if the array it's sorted :</p>
  
  <pre><code>for (int y = 1; y &lt;= ox_test.Length; y++)
       MessageBox.Show(".x: " + ox_test[y]);
  </code></pre>
  
  <p>.. I get ... 0, 0, 0, 0, 0 ( if the number of elements was 5 ). Please help, thank you!</p>
  
  <p>So i modified the both for loops:</p>
  
  <pre><code>for (int y = 0; y &lt; ox_test.Length; y++)
      MessageBox.Show(".x: " + ox_test[y]);
      // HERE  i get the values not sorted but != 0
  
  Array.Sort(ox_test);
  
  for (int y = 0; y &lt; ox_test.Length; y++)
      MessageBox.Show(".x s: " + ox_test[y]);
      // HERE i get only 0 values
  </code></pre>