title: How do I sort a Laravel Collection by multiple properties with both asc and desc?
body: <p>If I have an Illuminate\Support\Collection, how do I sort by multiple properties with both asc and desc?  (This is a simple hypothetical - not at all looking for tips on query building.)</p>
  
  <pre><code>$collection = User::all(); // not looking for User::orderBy()-&gt;get() solutions.  Read the question.
  $sorting_insructions = [
      ['column'=&gt;'first_name', 'order'=&gt;'asc'],
      ['column'=&gt;'date_of_birth', 'order'=&gt;'desc'],
  ];
  $collection-&gt;sort(function($a,$b) use ($sorting_instructions){
      // something...
  });
  </code></pre>