title: How to use OrderBy Linq when object is null and property is integer
body: <p>I want to order a collection with a property which is null but if not using a property that is integer.</p>
  
  <pre><code>repeaterEmployees.DataSource = employees.Distinct(new EmployeeComparer())
                                          .OrderBy(x =&gt; x.Status ?? x.Status.ID);
  repeaterEmployees.DataBind();
  </code></pre>
  
  <p>Employees is a class extending the List`Employee. And Employee has a property Status which is from a class Status</p>
  
  <p>I got a message in the OrderBy method "Operator ?? cannot be applied to operands of type Status and int"</p>