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

From: Date: Fri, 29 May 2015 11:30:46 +0000
Subject: Req #69726 [Fbk->Csd]: Sorting: Locale aware Natural Sorting
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193000@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 User updated by: opitz dot alexander at googlemail dot com Reported by: opitz dot alexander at googlemail dot com Summary: Sorting: Locale aware Natural Sorting -Status: Feedback +Status: Closed Type: Feature/Change Request Package: *General Issues Operating System: All PHP Version: master-Git-2015-05-29 (Git) Assigned To: cmb Block user comment: N Private report: N New Comment: Ok, fine, didn't found this solution yet elsewhere only all the requests. http://3v4l.org/RHPkY Works. Previous Comments: ------------------------------------------------------------------------ [2015-05-29 11:18:31] cmb@php.net 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? ------------------------------------------------------------------------ [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 (#193000) next »