Issue Task Resolved

#111151Sort local directory entries natively

Wouter Wolters 10/19/26, 19:59 updated 10/19/26, 20:25

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

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 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.