note 12896 deleted from function.usort by irc-html
| From: | irc-html@php.net | Date: | Mon, 31 Dec 2001 01:31:11 +0000 |
| Subject: | note 12896 deleted from function.usort by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24002@lists.php.net to get a copy of this message | ||
Correction for post from 13-May-2001 12:24:
if ($a == $b) { return 0; }
has to be:
if ($a[1] == $b[1]) { return 0;}
and:
} elseif ($asec > $bsec) {
return 1;
} elseif ($asec < $bsec) {
return -1;
}
has to be:
} else {
return ($asec > $bsec) ? -1 : 1;
}
Sorry for the correction, maybe someone can merge my 2 postings.