title: Multidimensional array sort by time - not working
body: <p>I'm trying to sort a multidimensional array by date. This is the current output of my array: </p>
  
  <pre>
  Array
  (
      [0] => Array
          (
              [date] => 07/08/19
              [title] => Some Title here
              [category] => Food
          )
  
      [1] => Array
          (
              [date] => 07/09/19
              [title] => Example here
              [category] => Sports
          )
  
      [2] => Array
          (
              [date] => 06/12/19
              [title] => Some title here as well
              [category] => Other
          )
  
      [3] => Array
          (
              [date] => 08/2/19
              [title] => Nothing to see here
              [category] => Sports
          )
  
      [4] => Array
          (
              [date] => 02/29/18
              [title] => Testing title here
              [category] => Sports
          )
  
      [5] => Array
          (
              [weekOf] => 07/16/19
              [title] => Test Test
              [category] => Food
          )
  )
  </pre>
  
  <p>Here is the function I have. I stripped out alot of the code the code to make it easier to read the question. The date is a string that I'm combining together and converting.</p>
  
  <pre><code>&lt;?php
      public function docs(){
          //Removed unnessary code here for question purposes
          foreach($files as $file) {
              //Removed unnessary code here for question purposes
  
              //The date is a string that I'm converting into a date
              $date = $month . '/' . $day . '/' . $year;
              $newDate = strtotime($date); 
              $formatedDate = date('M/d/Y', $newDate);
  
  
              $rows[] = [
                  'date' =&gt; $date,     
                  'title' =&gt; $title, 
                  'category' =&gt; $category,    
              ];
  
  
          }
  
          // Sorting array by time (DESC ORDER)
          usort($rows, function($firstItem, $secondItem) {
              $timeStamp1 = strtotime($firstItem['time']);
              $timeStamp2 = strtotime($secondItem['time']);
              return $timeStamp2 - $timeStamp1;
          });
  
          //more code here
  
      }
  </code></pre>