<p>In c# (3.0 or 3.5, so we can use lambdas), is there an elegant way of sorting a list of dates in descending order? I know I can do a straight sort and then reverse the whole thing, </p>

<pre><code>docs.Sort((x, y) =&gt; x.StoredDate.CompareTo(y.StoredDate));
docs.Reverse();
</code></pre>

<p>but is there a lambda expression to do it one step?</p>

<p>In the above example, StoredDate is a property typed as a DateTime.</p>

```
```
docs.Sort((x, y) => y.StoredDate.CompareTo(x.StoredDate));
```
```
Should do what you're looking for.