#22006 [NEW]: Multidimensional Array sorting
| From: | php at richardneill dot org | Date: | Sun, 02 Feb 2003 05:24:16 +0000 |
| Subject: | #22006 [NEW]: Multidimensional Array sorting | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-31867@lists.php.net to get a copy of this message | ||
From: php@richardneill.org
Operating system: Linux
PHP version: 4.2.0
PHP Bug Type: Feature/Change Request
Bug description: Multidimensional Array sorting
Consider an array of arrays : myarray["$i"]["$j"]...["$n"]
I'd like to see a function which will allow me to sort this on the nth
array index. Something like:
my_array_function(myarray, n) where n is the dimension to sort on.
This would make it easy to sort any array by row, column, depth, etc
Sorry if this feature already exists - I have spend 2 hours reading the
manual and googling for it to no avail. I know there are ways to get
around it, but a dedicated function would be nice. Thanks.
--
Edit bug report at http://bugs.php.net/?id=22006&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22006&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22006&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22006&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22006&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22006&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22006&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22006&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22006&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22006&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22006&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22006&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22006&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22006&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22006&r=gnused