title: iteration fails over sorted array
body: <p>I have the following method that sorts a list of binding source indices and puts their corresponding objects into an array. I have also tried using <code>Array.Sort()</code> and neither works, the code within the foreach loop never gets called. I have tested that the variable <code>int[] indices</code> is neither empty nor null.</p>
  
  <pre><code>internal void Foo(int[] indices)
  {
      var bar = new Object[indices.length];
      int i = 0;
      foreach (int index in indices.OrderBy(x =&gt; x))
      {
          // this block never gets called
          bar[i] = BindingSource[index];
          i++;
      }
  }
  </code></pre>