Req #61703 [Opn->Nab]: sort-array
| From: | aharvey@php.net | Date: | Fri, 13 Apr 2012 00:33:09 +0000 |
| Subject: | Req #61703 [Opn->Nab]: sort-array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169511@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61703&edit=1
ID: 61703
Updated by: aharvey@php.net
Reported by: sia88 at utexas dot edu
Summary: sort-array
-Status: Open
+Status: Not a bug
Type: Feature/Change Request
Package: Arrays related
Operating System: pc
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
What admin said.
Previous Comments:
------------------------------------------------------------------------
[2012-04-12 19:12:08] admin at sinfocol dot org
The feature is already implemented in another function called asort.
------------------------------------------------------------------------
[2012-04-12 19:00:14] sia88 at utexas dot edu
Description:
------------
---
From manual page: http://www.php.net/function.sort
---
I wanted to request a feature to the sort function. I noticed it did not have optional parameter to
retain the keys of the array. Instead it re-writes them. why not add an optional 3rd boolean
paramter to decide to retain keys in the original array or not?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61703&edit=1