Sorry that didn't work for me, not entirely. Although thanx for the ksort
suggestion, that was on the way!
This apparently works (after 3am frustration and trial-and-error):
function strrevcasecmp($a, $b) {
if (strcasecmp($a, $b) == 0) return 0;
return (strcasecmp($a, $b) > 0) ? -1 : 1;
}
@ksort($fbArray);
if (sizeof($fbArray) > 0) {
foreach ($fbArray as $key => $val) {
@uksort($val, "strrevcasecmp");
$fbArray[$key] = $val;
}
}
Phil
"David" <fi*******@btinternet.com> wrote in message
news:bh**********@sparta.btinternet.com...
wouldnt that just be
ksort($fbArray)
"Phil Powell" <so*****@erols.com> wrote in message
news:ZW0Za.11068$cf.5318@lakeread04...
$fbArray[$j] = array($feedbackCategoryArray[$i]['attributes']['NAME'] =>
$feedbackCategoryArray[$i]['attributes']['DISPLAYNAME']);
I can't begin to fathom in my befuddled mind how to sort this array
$fbArray into alphabetical order according to
$feedbackCategoryArray[$i]['attributes']['NAME'] - I am utterly lost,
can someone explain in detail how I would do it and why.
Thanx
Phil