title: Sort dynamic List<T> for a specific property
body: <p>I have a generic list which I want to order by two properties, priority and then by description to fill a drop down list.</p>
  
  <p>I know that when I now exactly the type of the object list I can do</p>
  
  <pre><code>list = list.Orderby(x=&gt;x.property1).ThenOrderBy(x=&gt;x.property2).
  </code></pre>
  
  <p>My question is how can I check if the property1 and property2 exist on the object and then sort my list based on those properties.</p>