title: Sort multidimensional array alphabetically, by value and store it in a new variable
body: <p>I have the following array I want to sort <em>by value</em>, A to Z, and store in a <em>new</em> arary <code>$atoz_people</code>:</p>
  
  <pre><code>$people = (
   [0] =&gt; Array
      (
          [id] =&gt; 1
          [name] =&gt; Ken
      )
  
   [1] =&gt; Array
      (
          [id] =&gt; 2
          [name] =&gt; Anne
      )
  
   [2] =&gt; Array
      (
          [id] =&gt; 3
          [name] =&gt; Bob
      )
  
  );
  </code></pre>
  
  <p>I used the "classic" <code>asort($people)</code>:</p>
  
  <pre><code>$atoz_people = $people;
  asort($atoz_people);
  print_r($atoz_people);
  </code></pre>
  
  <p>It does not work, unfortunately. What shall I change in order to get the array below? Is it even possible?</p>
  
  <pre><code>$atoz_people = (
      [1] =&gt; Array
      (
          [id] =&gt; 2
          [name] =&gt; Anne
      )
      [2] =&gt; Array
      (
          [id] =&gt; 3
          [name] =&gt; Bob
      )
      [0] =&gt; Array
      (
          [id] =&gt; 1
          [name] =&gt; Ken
      )    
  
  );
  </code></pre>