HomePhorge

Fix sort_folder_comparator (#9057)

This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Fix sort_folder_comparator (#9057)

In case $path2 is longer than $path1, and all folders in $path1 are
equal to the corresponding folder in $path2 (in other words: $path2 is a
subfolder of $path1), sort_folder_comparator currently considers them
equal because it stops comparing when it reaches the end of $path1.

This breaks the ordering done by uasort() above, and breaks code that
relies on the folder list being sorted, notably the folders settings
page.

Details

Provenance
Adrien Beau <abe.github@zerty.xyz>Authored on Jul 9 2023, 7:51 PM
mollekopfCommitted on May 13 2024, 10:11 AM
mollekopfPushed on May 15 2024, 11:49 AM
Parents
R113:7c0e89250c04: Log exceptions to stdout also with the logfmt driver
Branches
Unknown
Tags
Unknown
Build Status
Buildable 47259