Edit report at https://bugs.php.net/bug.php?id=61703&edit=1

 ID:                 61703
 Updated by:         ahar...@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

Reply via email to