Skip to content

Commit ff719ab

Browse files
committed
Sort paths by natural order case-insensitive
1 parent 4518938 commit ff719ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
};
101101

102102
$function_order_paths = function ($paths) {
103-
sort($paths);
103+
array_multisort(array_keys($paths), SORT_NATURAL | SORT_FLAG_CASE, $paths);
104104

105105
if (isset($_GET['order_by']) && in_array($_GET['order_by'], [
106106
'filename',

0 commit comments

Comments
 (0)