title: Array - Order by value then priority if matching values
body: <p>The aim with my code is to find the 3 lowest values, however, if two of them are matching it needs to prioritise which one appears in the bottom 3.</p>
  
  <p>This is my array:</p>
  
  <pre><code>Array
  (
      [1] =&gt; 50.00
      [5] =&gt; 59.38
      [4] =&gt; 62.50
      [2] =&gt; 62.50
      [7] =&gt; 66.67
      [8] =&gt; 68.75
      [6] =&gt; 80.00
      [9] =&gt; 91.67
  )
  </code></pre>
  
  <p>The priority is the Key and the score is the Value.</p>
  
  <p>Based on this example; Key 2 should be above key 4 as they both share the same value but the priority is greater on Key 2.</p>
  
  <p>I hope this makes sense as I am starting to doubt my sanity with this, haha.</p>
  
  <p>Many thanks,
  Scott.</p>