title: implementing the IComparable Interface on two string fields
body: <p>How do I implement the IComparable Interface on two string fields?</p>
  
  <p>Using the Person class example below. If Person objects are added to a list. How do I sort the list based on Surname first THEN Forename?</p>
  
  <pre><code>Class Person
  {
      public string Surname { get; set; }
      public string Forname { get; set; }
  }
  </code></pre>
  
  <p>Something like? :</p>
  
  <pre><code>myPersonList.Sort(delegate(Person p1, Person p2)
  {
      return p1.Surname.CompareTo(p2. Surname);
  });
  </code></pre>