|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-05-29 07:41 UTC] 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 12:00:01 2026 UTC |
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?