I'm searching for help. I found ksort
and other sort methods for php. But i got an Array in an Array with an key called order
. And this i want to be the order of the array
array(
array("obj" => $objPage, "id" => "LogIn", "order" => 3),
array("obj" => $objPage, "id" => "Home", "order" => 1),
array("obj" => $objPage, "id" => "Register", "order" => 2),
array("obj" => $objPage, "id" => "Imprint", "order" => 4), /* ... */
)
Now i want the array objects to sort as this:
array(
array("obj" => $objPage, "id" => "Home", "order" => 1),
array("obj" => $objPage, "id" => "Register", "order" => 2),
array("obj" => $objPage, "id" => "LogIn", "order" => 3),
array("obj" => $objPage, "id" => "Imprint", "order" => 4), /* ... */
)
Can you give me a hint how to solve this?