title: How to use a string to create a EF order by expression?
body: <p>I'm trying to achive this conversion</p>
  
  <pre><code>"Address.Street" =&gt; (p) =&gt; p.Address.Street
  "Name" =&gt; (p) =&gt; p.Name
  </code></pre>
  
  <p>I was able to find a method to generate an order by expression using reflection but it won't work for complex sort as <code>Address.Street</code> since works for a single property level.</p>
  
  <p>Is there a way to do this? I've seen that I compile lambda expressions but I couldn't understand how to make it work for this case.</p>