title: Sorting array by field in .net 2.0
body: <p>I have class StatusesInvestmentRow (from dataSource) where one of the field is ModifiedDate </p>
  
  <pre><code>Investment table:
  
  Id int PK;
  ModifiedDate datetime;
  </code></pre>
  
  <p>How can I sort this arrayby this date? </p>
  
  <p>I found example with IComparable but StatusesInvestmentRow has DataRow type so it is not good way I think.</p>
  
  <p>I have this and I can't change this:</p>
  
  <pre><code>  statInw = new GetAllInvestmentStatuses();
  </code></pre>
  
  <p>I want add something like:</p>
  
  <pre><code>  var newestStatusInvestment = statInv.Sort(comparerByDate)[0];
  </code></pre>