I have an array that looks like this:
Array ( [0] => Array ( [filters] => Array ( [filter_1] => 1 [filt
You'll need to use the uasort function. Try something like this:
function cmp($a, $b) { if ($a["count"] == $b["count"]) { return 0; } return ($a["count"] > $b["count"]) ? -1 : 1; } uasort($array, 'cmp');