#111151Sort local directory entries natively
Description
Use ksort() and krsort() with SORT_NATURAL | SORT_FLAG_CASE instead of
uksort() with a PHP callback invoking strnatcasecmp(). This keeps all
comparisons inside the native sorting implementation.
Preserve sorting keys, case-insensitive ties and ascending or
descending order. Add regression coverage for natural ordering,
numeric keys and duplicate extensions.
Reviews 1
History 12
-
Gerrit Code Review pushed patch set 2 for main to change 96827 status
NewUnder Review 10/19/26, 19:59 -
Wouter Wolters commented and changed status
Under ReviewResolved done0 %100 % 10/19/26, 20:25
Applied in changeset commit:ce0307c49a4ea9d81243bde86e3fc9b20f24c219.