If you look at the code below we have an array populated with 3 other arrays, each of them has an ID element, a title element and an order element. At the moment these are simply in order of how they were added to the array but because there is an order element identifying what position they should be in we need to re-sort these in the correct order.
view source