[BUGFIX] Natural sort with t3lib_div::naturalKeySortRecursive()
authorSusanne Moog <typo3@susannemoog.de>
Thu, 2 Jun 2011 09:23:20 +0000 (11:23 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Thu, 2 Jun 2011 10:02:38 +0000 (12:02 +0200)
commit9ca1a5ea0eefa110eaaac9e034904092b4963a33
tree4d57e1c5211c1f1862ba83cd39a5e962fa6e3ed8
parent239f68d54da0778c1e18a77d6a4916bbc9f46221
[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: Ia9cd9a36da2bc0b6111a025e73b5bf8d26319c08
Resolves: #26485
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/1787
Reviewed-by: Markus Klein
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
t3lib/class.t3lib_div.php
tests/t3lib/class.t3lib_divTest.php