Req #43145 [Opn->Csd]: Add support for SORT_LOCALE_STRING to array_multisort() function
Edit report at https://bugs.php.net/bug.php?id=43145&edit=1
ID: 43145
Updated by: arpad@php.net
Reported by: sw at veracomp dot pl
Summary: Add support for SORT_LOCALE_STRING to
array_multisort() function
-Status: Open
+Status: Closed
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Linux / Any
PHP Version: 5.2.4
-Assigned To:
+Assigned To: arpad
Block user comment: N
Private report: N
New Comment:
This is implemented in PHP 5.3+ on platforms where strcoll is available.
Previous Comments:
------------------------------------------------------------------------
[2007-10-30 16:07:42] sw at veracomp dot pl
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 this bug report at https://bugs.php.net/bug.php?id=43145&edit=1
Thread (2 messages)