2 namespace TYPO3\CMS\Core\Utility;
35 if (strpos($elementA,
'/') ===
false) {
37 if (strpos($elementB,
'/') ===
false) {
38 $result = self::nameCompareSortingHelper($elementA, $elementB);
45 if (strpos($elementB,
'/') ===
false) {
50 list($pathPartA, $elementA) = explode(
'/', $elementA, 2);
51 list($pathPartB, $elementB) = explode(
'/', $elementB, 2);
53 if ($pathPartA === $pathPartB) {
55 $result = self::recursiveFileListSortingHelper($elementA, $elementB);
58 $result = self::nameCompareSortingHelper($pathPartA, $pathPartB);
76 $result = strnatcasecmp($elementA, $elementB);
79 $result = strcmp($elementA, $elementB);