title: IList - LINQ to filter and order by
body: <p>I have the following test code to search a generic list:</p>
  
  <pre><code>public void DoSearch(string searchTerm)
  {
  
  IList&lt;MyEntity&gt; entities = GetCollectionOfEntities();
  
  IList&lt;MyEntity&gt; results = entities.Where(d =&gt; d.Description.Contains(searchTerm)).ToList();
  
  }
  </code></pre>
  
  <p>I want to pass an order by parameter (which would be a property of MyEntity) and of course order my results based on that. I understand LINQ uses OrderBy but do not understand how to order by a property of MyEntity.</p>