ID: 17307 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Arrays related Operating System: Linux PHP Version: 4.2.1 New Comment:
Please prive a short self containing script (which runs right away after copy&paste). Derick Previous Comments: ------------------------------------------------------------------------ [2002-05-18 08:36:08] [EMAIL PROTECTED] I used to make sorts with usort and calling the function below. This was working on the last versions but not anymore on the 4.2.1 :/ which outputs strange result. function sort_function($a, $b) { if ((($a["livre"]/$a["quantite"]) == ($b["livre"]/$b["quantite"])) || $a["nom"] != $b["nom"]) return 0; return (($a["livre"]/$a["quantite"]) < ($b["livre"]/$b["quantite"])) ? -1 : 1; } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17307&edit=1