title: Laravel 4/5, order by a foreign column
body: <p>In Laravel 4/5 how can order a table results based in a field that are connected to this table by a relationship?</p>
  
  <p>My case:</p>
  
  <p>I have the <code>users</code> that only store the <code>e-mail</code> and <code>password</code> fields. But I have an another table called <code>details</code> that store the <code>name</code>, <code>birthday</code>, etc...</p>
  
  <p>How can I get the <code>users</code> table results ordering by the <code>details.name</code>?</p>
  
  <p>P.S.: Since users is a central table that have many others relations and have many items, I can't just make a inverse search like <code>Details::...</code></p>