title: Sort a Custom Class List<T>
body: <p>I would like to sort my list with the <code>date</code> property.</p>
  <p>This is my custom class:</p>
  <pre class="lang-cs prettyprint-override"><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  
  namespace Test.Web
  {
      public class cTag
      {
          public int id { get; set; }
          public int regnumber { get; set; }
          public string date { get; set; }
      }
  }
  </code></pre>
  <p>An this is the <code>List</code> that I want to sort:</p>
  <pre class="lang-cs prettyprint-override"><code>List&lt;cTag&gt; Week = new List&lt;cTag&gt;();
  </code></pre>
  <p>I want to sort the <code>List</code> by the <code>date</code> property of the <code>cTag</code> class.
  The date is in the format <code>dd.MM.yyyy</code>.</p>
  <p>I read something about the <code>IComparable</code> interface, but I don't know how to use it.</p>