title: Laravel Blade - orderBy
body: <p>I have this foreach loop in my blade template. </p>
  
  <pre><code>@foreach ($employee-&gt;projects-&gt;groupBy('stage') as $stage =&gt; $project)
    &lt;tbody&gt;
      &lt;td&gt;{{ $stage }}&lt;/td&gt;
      &lt;td class="text-center"&gt;{{ count($project) }}&lt;/td&gt;
    &lt;/tbody&gt;
  @endforeach
  </code></pre>
  
  <p>Where it finds all the projects that the employee is involved in and groups them by what stage they are in (Waiting, In Progress, Launched). And then it lists the stages and the count of how many are in each stage. This works perfectly but they are not in the right order. I would like them in Waiting, In Progress, Launched. Currently it's in Launched, Waiting, In Progress. </p>
  
  <p>How can I order them in my custom order?</p>