title: Laravel foreach sort by, show specific records first
body: <p>I have a foreach loop and I want to sort the list by showing records where is_active is null first, then anything else after.</p>
  
  <pre><code>    @foreach ($registrations-&gt;sortBy('is_active') as $registration)
  </code></pre>
  
  <p>Any ideas?</p>