35 if (strpos($elementA,
'/') ===
false) {
37 if (strpos($elementB,
'/') ===
false) {
45 if (strpos($elementB,
'/') ===
false) {
50 list($pathPartA, $elementA) = explode(
'/', $elementA, 2);
51 list($pathPartB, $elementB) = explode(
'/', $elementB, 2);
53 if ($pathPartA === $pathPartB) {
76 $result = strnatcasecmp($elementA, $elementB);
79 $result = strcmp($elementA, $elementB);