title: How to sort an array of arrays in php?
body: <p>In php I have a numerical array of associative arrays:</p>
  
  <pre><code>mainArray: 
  [
    array1:['title':'Record a','order':'2'],
    array2:['title':'Record b','order':'4'],
    array3:['title':'Record c','order':'1'],
    array4:['title':'Record d','order':'3']
  ]
  </code></pre>
  
  <p>What is the simplest way to sort mainArray by the 'order' value of each associative array?</p>
  
  <p>Thanks</p>