php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23189 ksort() doesn't work on numeric arrays
Submitted: 2003-04-13 18:00 UTC Modified: 2003-04-13 18:28 UTC
From: wom dot bat at gmx dot net Assigned:
Status: Not a bug Package: Arrays related
PHP Version: 4.3.1 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wom dot bat at gmx dot net
New email:
PHP Version: OS:

 

 [2003-04-13 18:00 UTC] 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...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-13 18:04 UTC] wom dot bat at gmx dot net
arrgh... I guess I'm a little exhausted. close this one, please
 [2003-04-13 18:28 UTC] edink@php.net
As requested.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC