title: C# Sort and OrderBy comparison
body: <p>I can sort a list  using Sort or OrderBy. Which one is faster? Are both working on same 
  algorithm?</p>
  
  <pre><code>List&lt;Person&gt; persons = new List&lt;Person&gt;();
  persons.Add(new Person("P005", "Janson"));
  persons.Add(new Person("P002", "Aravind"));
  persons.Add(new Person("P007", "Kazhal"));
  </code></pre>
  
  <p>1.</p>
  
  <pre><code>persons.Sort((p1,p2)=&gt;string.Compare(p1.Name,p2.Name,true));
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>var query = persons.OrderBy(n =&gt; n.Name, new NameComparer());
  
  class NameComparer : IComparer&lt;string&gt;
  {
      public int Compare(string x,string y)
      {
        return  string.Compare(x, y, true);
      }
  }
  </code></pre>