#42889 [Opn->Bgs]: typo on php.net/function.array-multisort

From: Date: Mon, 08 Oct 2007 12:49:11 +0000
Subject: #42889 [Opn->Bgs]: typo on php.net/function.array-multisort
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-71@lists.php.net to get a copy of this message
ID: 42889 Updated by: rquadling@php.net Reported By: daniel dot land at gmail dot com -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: XP PHP Version: Irrelevant New Comment: The example is correct. You cannot consider the second array as separate from the first array. This function is emulating the sorting of columns in a table, so the first column has a higher precedence in controlling the results. Previous Comments: ------------------------------------------------------------------------ [2007-10-08 12:43:31] daniel dot land at gmail dot com Description: ------------ The second example on php.net/function.array-multisort says: 'The second will contain 1, 3, "2", 2, 1 (sorted as numbers, in descending order).' Maybe this is a typo because 1,3,2,2,1 is not in descending order, right? Reproduce code: --------------- N/A Expected result: ---------------- The first number in the sequence should be 3 or higher. Actual result: -------------- The first number in the sequence is 1. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42889&edit=1

« previous php.doc.bugs (#71) next »