I have an array like this:
Array (
[0] => Array (
[tag] => /nn
[count] => 55
)
[1] => Array (
[tag] => /vb
[count] => 7
)
)
and I want to sort it. In this example it’s already like I want it to be. Sorted by count. What if it was reverse ordered? What function is there to sort it?
Thanks a lot.
Check this code
Or
I usually use usort, and pass my own comparison function. In this case, it is very simple:
Hope you can find your answer. Mark my answer and point me up, thanks.