title: Sort a flat, associative array by numeric values, then by non-numeric keys
body: <p>I have an array of string keys with numeric values to be used to create a list of tags with the number of occurrences of each tag resembling this:</p>
  <pre><code>$arrTags = [
      'mango' =&gt; 2, 
      'orange' =&gt; 4, 
      'apple' =&gt; 2,
      'banana' =&gt; 3
  ];
  </code></pre>
  <p>I want to display the tags in a list with descending values, then the
  tag names ascending to produce:</p>
  <pre><code>orange (4)  
  banana (3) 
  apple (2) 
  mango (2)
  </code></pre>
  <p><code>arsort()</code> is not suitable because it will put <code>mango</code> before <code>apple</code>. I'm guessing that <code>usort()</code> may be the way, but I'm not finding a suitable example in the comments on php.net.</p>