Does ANYBODY know how to sort a multidimensional array?! I've been trying to do this for hours, with no success. I'm trying to sort the array "$page" with "position" in ascending order, as that's the position to show in the navigation bar. Any help would be MUCH appreciated! Already tried most of the on examples in the documentation, but nothing seems to work.
Array
(
[0] => Array
(
[position] => 0
[text] => Home
[url] => ./
[navigation] => true
)
[1] => Array
(
[position] => 0
[text] => 404
[url] => ./?p=404
[navigation] => false
)
[2] => Array
(
[position] => 0
[text] => 403
[url] => ./?p=403
[navigation] => false
)
[3] => Array
(
[position] => 1
[text] => Posts
[url] => ./?p=posts
[navigation] => true
)
[4] => Array
(
[position] => 3
[text] => Users
[url] => ./?p=users
[navigation] => true
)
[5] => Array
(
[position] => 1
[text] => Logout
[url] => ./?p=logout
[navigation] => false
)
[6] => Array
(
[position] => 2
[text] => Banner
[url] => ./?p=banner
[navigation] => true
)
[7] => Array
(
[position] => 5
[text] => Login
[url] => ./?p=login
[navigation] => false
)
)
Please don't tell me to search, because I have, and nothing is working! One of them did work when i was testing it locally, but my server threw up an error so I had to find an alternative.