title: How to Sort a List<T> by a property in the object
body: <p>I have a class called <code>Order</code> which has properties such as <code>OrderId</code>, <code>OrderDate</code>, <code>Quantity</code>, and <code>Total</code>. I have a list of this <code>Order</code> class:</p>
  <pre><code>List&lt;Order&gt; objListOrder = new List&lt;Order&gt;();
  GetOrderList(objListOrder); // fill list of orders
  </code></pre>
  <p>I want to sort the list based on one property of the <code>Order</code> object; for example, either by the order date or the order id.</p>
  <p>How can I do this in C#?</p>