title: DbSortClause expressions must have a type that is order comparable parameter Name :Key
body: <p>I am using Linq to entity and have the following query</p>
  
  <pre><code>IQueryable&lt;DomainModel.User&gt; userResult = 
        userResult.OrderBy(u =&gt; u.UserClientRoles.OrderBy(r =&gt; r.Role.RoleName));
  </code></pre>
  
  <p>But I am getting this error</p>
  
  <blockquote>
    <p>DbSortClause expressions must have a type that is order comparable </p>
    
    <p>parameter Name :Key</p>
  </blockquote>
  
  <p>and it returns an empty collection.</p>
  
  <p>Any idea what's going on?</p>