note 87376 added to function.natcasesort

From: Date: Tue, 02 Dec 2008 15:45:42 +0000
Subject: note 87376 added to function.natcasesort
Groups: php.notes 
Request: Send a blank email to php-notes+get-147558@lists.php.net to get a copy of this message
If your array already is sorted ASC or DESC, then natcasesort, ksort and sort (I only tested those) will invert the sorting order. This is most troublesome since its impossible to force a sorting order. I had to use array_multisort instead and lose the natrual sorting. Natcasesort expects a single dimension array, so if your value is an array then it will report a "Array to string conversion" notice per key/value set. ---- Server IP: 195.184.96.15 Probable Submitter: 87.54.44.130 ---- Manual Page -- http://www.php.net/manual/en/function.natcasesort.php Edit -- https://master.php.net/note/edit/87376 Del: integrated -- https://master.php.net/note/delete/87376/integrated Del: useless -- https://master.php.net/note/delete/87376/useless Del: bad code -- https://master.php.net/note/delete/87376/bad+code Del: spam -- https://master.php.net/note/delete/87376/spam Del: non-english -- https://master.php.net/note/delete/87376/non-english Del: in docs -- https://master.php.net/note/delete/87376/in+docs Del: other reasons-- https://master.php.net/note/delete/87376 Reject -- https://master.php.net/note/reject/87376 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147558) next »