title: Sorting an array based on its value
body: <p>I have an Array, 
  Sample:</p>
  
  <pre><code>$array {
   [0] {
     [something]=1;
     [something2]=2;
       } 
   [1] {
     [something]=2;
     [something2]=4;
       }
   [2] {
     [something]=5;
     [something2]=2;
       }
  }
  </code></pre>
  
  <p>I want to order the array based on the key something;</p>
  
  <p>So it will look like:</p>
  
  <pre><code>$array {
   [0] {
     [something]=5;
     [something2]=2;
       } 
   [1] {
     [something]=2;
     [something2]=4;
       }
   [2] {
     [something]=1;
     [something2]=2;
       }
  }
  </code></pre>