title: How to sort a List in C#
body: <p>I have a class:</p>
  
  <pre><code>public class MyObject
  {
  public string Name;
  public int Age;
  }
  </code></pre>
  
  <p>I have a List of Myobject objects:</p>
  
  <pre><code>Name Age
  ABC 12
  BBC 14
  ABC 11
  </code></pre>
  
  <p>How to sort this list with condition: sort Name first &amp; sort Age later. With this list, the result after sorting:</p>
  
  <pre><code>Name Age
  ABC 11
  ABC 12
  BBC 14
  </code></pre>