title: Sort php array inside loop by number
body: <pre><code>&lt;?php
  foreach ($jsonObj as $items) {
   foreach ($items["items"] as $itemlist){ 
  // $itemlist['position']; I want them to echo in that order
  echo $itemlist['name'];
  }
  }
  ?&gt;
  </code></pre>
  
  <p>I have an array that I loop through. In that array there is name and order. I would like to display them in numerical order, how can I make it print out the itemlist with lowest number first, then the second etc?</p>