note 114464 added to function.array-multisort

From: Date: Sun, 23 Feb 2014 17:11:34 +0000
Subject: note 114464 added to function.array-multisort
Groups: php.notes 
Request: Send a blank email to php-notes+get-198601@lists.php.net to get a copy of this message
There is a lack of precision for the second example : Example #2 Sorting multi-dimensional array The explanation is : "In this example, [...] The second will contain 1, 3, "2", 2, 1 (sorted as numbers, in descending order). " This could be misunderstood cause a sort as numbers in descending order will be 1, 1, "2", 2, 3. My proposal is as follows (in a best english should be great ^^) : "In this example, [...] The second will contain 1, 3, "2", 2, 1 (sorted as well as first one, except for values 3 and "2" sorted as numbers, in descending order). Because they are corresponding to the identical entries in the first array (100 and 100) which couldn't be sorted at first time." ---- Server IP: 195.221.21.36 Probable Submitter: 82.232.201.158 ---- Manual Page -- http://php.net/manual/en/function.array-multisort.php Edit -- https://master.php.net/note/edit/114464 Del: integrated -- https://master.php.net/note/delete/114464/integrated Del: useless -- https://master.php.net/note/delete/114464/useless Del: bad code -- https://master.php.net/note/delete/114464/bad+code Del: spam -- https://master.php.net/note/delete/114464/spam Del: non-english -- https://master.php.net/note/delete/114464/non-english Del: in docs -- https://master.php.net/note/delete/114464/in+docs Del: other reasons-- https://master.php.net/note/delete/114464 Reject -- https://master.php.net/note/reject/114464 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198601) next »