I got following array:
[
[0] => ["value" => "somevalue", "sort_number" => 3],
[1] => ["value" => "somevalue", "sort_number" => 1],
[2] => ["value" => "somevalue", "sort_number" => 2],
]
I want to sort the 3 arrays inside the outer one by sort_number
.
I already tried to play around with the array_multisort()
function (http://php.net/manual/de/function.array-multisort.php) but somehow i can`t get it to work with it. The examples shown in the documentation also look different to what i have here.