Req #61703 [Com]: sort-array
| From: | admin at sinfocol dot org | Date: | Thu, 12 Apr 2012 19:12:08 +0000 |
| Subject: | Req #61703 [Com]: sort-array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169499@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
Comment by: admin at sinfocol dot org
Reported by: sia88 at utexas dot edu
Summary: sort-array
Status: Open
Type: Feature/Change Request
Package: Arrays related
Operating System: pc
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
The feature is already implemented in another function called asort.
Previous Comments:
------------------------------------------------------------------------
[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