first of all, I did check and try thoses links:
Sort Multi-dimensional Array by Value
Sort Multi-dimensional Array by Value
Sort php multidimensional array by sub-value
So there is my problem. I need to sort an array by value of a key into a multi-dimensional array.
This is the structure if I do : print($myarray)
Array (
[afctname1] => Array (
[active] => 1
[icons] => Array (
[0] => Array (
[permalink] => afctname1
[ordering] => 2
)
)
)
Array (
[afctname2] => Array (
[active] => 1
[icons] => Array (
[0] => Array (
[permalink] => afctname2
[ordering] => 0
)
)
)
Array (
[afctname3] => Array (
[active] => 1
[icons] => Array (
[0] => Array (
[permalink] => afctname3
[ordering] => 1
)
)
)
So all that I want is to sort the array by the value in the key "ordering".
Can some body give me a hint or help me with a demo or something? Thanks.