title: How to order two DatetimeOffset properties using Linq
body: <p>I have class called DocumentHistory that has two <code>DateTimeOffset?</code> properties - <code>CreatedOn</code> and <code>ModifiedOn</code>. I want to be able to <em>order</em> by the <em>most recent time</em> without have to specify want property to look at first. </p>
  
  <p>I have tried to order them by using Linq's <code>OrderByDescending</code>. </p>
  
  <pre><code>  var documentHistories = docHistory
      .OrderByDescending(c =&gt; c.CreatedOn)
      .ThenByDescending(c =&gt; c.ModifiedOn)
      .ToList();
  </code></pre>