title: Sort JSON object in PHP by a key value
body: <p>I need to sort this kind of information by the "score" value in a PHP script, how can I do? :</p>
  
  <pre><code>Array
  (
   [0] =&gt; stdClass Object
      (
          [name] =&gt; Morts par DÃ©shydratation
          [score] =&gt; 4
          [id] =&gt; dwater
      )
  
   [1] =&gt; stdClass Object
      (
          [name] =&gt; RÃ©parations de chantiers
          [score] =&gt; 87
          [id] =&gt; brep
      )
  
   [2] =&gt; stdClass Object
      (
          [name] =&gt; Campeur tÃ©mÃ©raire
          [score] =&gt; 77
          [id] =&gt; camp
      )
  
   [3] =&gt; stdClass Object
      (
          [name] =&gt; DÃ©coration
          [score] =&gt; 112
          [id] =&gt; deco
      )
  )
  </code></pre>
  
  <p>PS : This is already in a PHP value, I already used json_decode.*</p>