I have this php array:
Array ( [5] => Theme [8] => More [6] => Plugins [7] => Settings [1] => Blog [2] => Images [3] => Pages [4] => Social Media )
I need to sort it by the number of the array, so this array should be:
Array ( [1] => Blog [2] => Images [3] => Pages [4] => Social Media [5] => Theme [6] => Plugins [7] => Settings [8] => More )
How can I go about sorting this array into the outcome I need in php?
Thank you.
EDIT: I need to sort the array by the name of the multidimensional array, not the value.