#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 <span data-processor="relativetime" data-value="2026-10-19T19:59:32+00:00" > 10/19/26, 19:59 </span> -
Wouter Wolters commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-19T20:25:13+00:00" > 10/19/26, 20:25 </span>
Applied in changeset commit:ce0307c49a4ea9d81243bde86e3fc9b20f24c219.