Req #69726 [Opn->Fbk]: Sorting: Locale aware Natural Sorting

From: Date: Fri, 29 May 2015 11:18:32 +0000
Subject: Req #69726 [Opn->Fbk]: Sorting: Locale aware Natural Sorting
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192999@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69726&edit=1 ID: 69726 Updated by: cmb@php.net Reported by: opitz dot alexander at googlemail dot com Summary: Sorting: Locale aware Natural Sorting -Status: Open +Status: Feedback Type: Feature/Change Request Package: *General Issues Operating System: All PHP Version: master-Git-2015-05-29 (Git) -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: The intl extension already provides such a facility: <?php $a = ['bücher','buch10','buch2','buch1']; $coll = new Collator('de_DE'); $coll->setAttribute(Collator::NUMERIC_COLLATION, Collator::ON); $coll->sort($a); print_r($a); ?> Is that what you're looking for? Previous Comments: ------------------------------------------------------------------------ [2015-05-29 07:41:25] opitz dot alexander at googlemail dot com Description: ------------ There are 3 types of string sortings, binary, locale aware and natural. But there is no way to sort natural AND locale aware. References: #12653 #19795 #38203 #61023 As it isn't possible to reopen issues and closed issues won't be read, I created this new one, as we like to use this in TYPO3.CMS. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69726&edit=1

« previous php.bugs (#192999) next »