I’ve rtfm’d on php.net, and I’ve also searched here but have not found a solution to my issue.
I have result sets from several MySQL queries (on different servers or I would solve this in the query ORDER BY clause), and they are combined into 1 php array which takes the form:
Array (  => Array ( [SITE] => Site A [FREQUENCY] => 8 [SITEID] => 24121 )  => Array ( [SITE] => Site B [FREQUENCY] => 14 [SITEID] => 29001 )  => Array ( [SITE] => Site C [FREQUENCY] => 4 [SITEID] => 18027 ) )
I need to sort the array on the FREQUENCY field descending.
I’ve had no success with arsort() or array_multisort().
Can anyone offer guidance as to how I might accomplish this with the built-in php functions?