title: Sort vs OrderBy c#
body: <p>I want to update this code to use OrderBy instead of Sort.</p>
  
  <pre><code> protected void Sort()
          {
              m_Items.Sort(new Comparison&lt;PayArrayItem&gt;(
                  delegate (PayArrayItem x, PayArrayItem y)
                  {
                      return x.TransactionDate.CompareTo(y.TransactionDate);
                  }
                  ));
          }
  </code></pre>