#43145 [NEW]: Add support for SORT_LOCALE_STRING to array_multisort() function
From: sw at veracomp dot pl
Operating system: Linux / Any
PHP version: 5.2.4
PHP Bug Type: Feature/Change Request
Bug description: Add support for SORT_LOCALE_STRING to array_multisort() function
Description:
------------
Hi,
I'm writing an application that utilizes the array_multisort function.
We have to sort data in polish language whitch contains non-ASCII
characters.
We tried to pass SORT_LOCALE_STRING to the function, but the but it
produces warning:
Argument #3 is an unknown sort flag
We are aware that the Docs says it supports only SORT_STRING, SORT_REGULAR
and SORT_NUMERIC flags, but we do need locale sorting.
Please add support for SORT_LOCALE_STRING flag to this function.
Thanks, in advance
Szymon Wilkolazki
Reproduce code:
---------------
array_multisort($columnsArray, SORT_ASC, SORT_LOCALE_STRING,
$theDataToBeSorted );
Expected result:
----------------
Table sorted.
Actual result:
--------------
Warning: array_multisort() [function.array-multisort]: Argument #3 is an
unknown sort flag in...
Table not sorted.
--
Edit bug report at http://bugs.php.net/?id=43145&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43145&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43145&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43145&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43145&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43145&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=43145&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43145&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43145&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43145&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43145&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43145&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=43145&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=43145&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43145&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43145&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43145&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43145&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43145&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43145&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43145&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43145&r=mysqlcfg
Thread (2 messages)
- sw at veracomp dot pl