title: Call to undefined method Illuminate\Database\Eloquent\Builder::sortByDesc()
body: <p>I'm trying to get a list of 5 recent projects and sort them in descending order based on the created_at date field.  I'm using Model::with() to avoid the n+1 problem.  Below is the code:</p>
  <pre><code>  $recentProjects = Project::with('visits','team')
                                  -&gt;whereYear('created_at',now()-&gt;year)
                                  -&gt;sortByDesc('created_at')-&gt;take(5)
                                  -&gt;get();
  </code></pre>
  <p>However, I get the error:</p>
  <blockquote>
  <p>Call to undefined method Illuminate\Database\Eloquent\Builder::sortByDesc()</p>
  </blockquote>
  <p>I tried different ways, like <code>Project::orderBy()</code> followed by with, and didn't workout either.</p>