#23189 [Opn->Bgs]: ksort() doesn't work on numeric arrays
| From: | edink@php.net | Date: | Sun, 13 Apr 2003 23:28:32 +0000 |
| Subject: | #23189 [Opn->Bgs]: ksort() doesn't work on numeric arrays | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37620@lists.php.net to get a copy of this message | ||
ID: 23189
Updated by: edink@php.net
Reported By: wom dot bat at gmx dot net
-Status: Open
+Status: Bogus
Bug Type: Arrays related
Operating System: Windows XP
PHP Version: 4.3.1
New Comment:
As requested.
Previous Comments:
------------------------------------------------------------------------
[2003-04-13 18:04:15] wom dot bat at gmx dot net
arrgh... I guess I'm a little exhausted. close this one, please
------------------------------------------------------------------------
[2003-04-13 18:00:52] wom dot bat at gmx dot net
If I try to sort a numeric array using ksort(), nothing happens, the
array doesn't get sorted at all.
sort() works perfect, though - the array gets sorted, but the index
associations aren't kept, of course.
As the documentation doesn't say that ksort() only works with
associative arrays, I guess this is likely to be a bug...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23189&edit=1