[BUGFIX] Natural sort with t3lib_div::naturalKeySortRecursive()
authorMarkus Klein <klein.t3@mfc-linz.at>
Thu, 12 May 2011 20:10:19 +0000 (22:10 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Thu, 2 Jun 2011 10:23:17 +0000 (12:23 +0200)
commit2d16a5bd419864809c9e8c174aeba2aaba74229a
tree9137a3290099c3b8a37490371aa0fc001b7d7266
parent4c71e871f42979562ca95c4c8b50074a0ee3ddaa
[BUGFIX] Natural sort with t3lib_div::naturalKeySortRecursive()

This fix changes the used compare function for
t3lib_div::naturalKeySortRecursive() from strcasecmp to strnatcasecmp.
This ensures >natural< sorting especially in conjunction with
numbers in strings.

Change-Id: Ic378215707dfa0b20a198f82230afd56f1681934
Resolves: #26485
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/2109
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
t3lib/class.t3lib_div.php
tests/t3lib/t3lib_divTest.php