title: Linq query with Datetime Object
body: <p>I want to receive the newest item from a collection. Each item has a "DateTime" field (EditDate) and I do a little query like this:</p>
  
  <pre><code>var s = from l in OCollectionAgents
      where l.IDOfVehicle == agent.IDOfVehicle
      orderby
      agent.EditDate ascending
      select l;
  </code></pre>
  
  <p>Then after the query I do this:</p>
  
  <pre><code>agent.DetailInformationOfResults.NewestAgentEditDate = s.First().EditDate;
  </code></pre>
  
  <p>But no matter what, if the sort direction is <strong>ascending</strong> or <strong>descending</strong> I still get the same item. The oldest item.</p>
  
  <p>I fixed the problem by doing this, and it worked.</p>
  
  <pre><code>agent.DetailInformationOfResults.NewestAgentEditDate = s.Max(d =&gt; d.EditDate);
  </code></pre>
  
  <p>But now, I wonder why does my query result not change the sort direction?</p>