Possible Duplicate:
Sorting an associative array in PHP
I have an array that looks like the below one. I need to order it by the points values Highest to lowest. I have tried all the sorting functions and some bring back crazy results.
(
[0] => Array
(
[name] => Shane Jones
[points] => 43
)
[1] => Array
(
[name] => Katie 'Kitty' Youd
[points] => 50
)
[2] => Array
(
[name] => Steve Bennett
[points] => 50
)
[3] => Array
(
[name] => Sharon Harvey
[points] => 99
)
[4] => Array
(
[name] => Sean Dentith
[points] => 50
)
)