title: Laravel order by relationship
body: <p>I have a query:</p>
  
  
  
  <pre class="lang-php prettyprint-override"><code> $users =  User::byRole()-&gt;inCompany()
          -&gt;with([
              'role'     =&gt; function ($q) {
                  $q-&gt;select('id', 'title')-&gt;orderBy('title','DESC');
              },
              'company'  =&gt; function ($q) {
                  $q-&gt;select('id', 'company_name');
              },
              'projects' =&gt; function ($q) {
                  $q-&gt;select('id', 'name');
              },
          ])-&gt;select([
              'email',
              'id',
              'company_id',
          ])-&gt;paginate();
  </code></pre>
  
  <p>The issue is that it wont order by the role title.</p>
  
  <p>What am i doing wrong?</p>
  
  <p>Thank you</p>