zed/crates/util
Luis 27ab898e65
project_panel: Fix mixed sort with incorrect ordering when same file and dir name (#47863)
Closes #47678

When using mixed sort mode in the project panel, a folder and file with
the same name but different case (e.g., `hello` folder and `Hello.txt`
file) would sort incorrectly. The file could appear between an expanded
folder and its contents.

The issue was in `compare_rel_paths_mixed`: the tie-breaker logic used
case-sensitive comparison (`a == b`) to decide directory-before-file
ordering, but `natural_sort_no_tiebreak` already considers entries equal
case-insensitively. Changed to use `eq_ignore_ascii_case` to match.

Release Notes:

- Fixed project panel mixed sort mode ordering incorrectly when a file
and folder share the same name with different casing.
2026-02-16 19:08:13 +05:30
..
src project_panel: Fix mixed sort with incorrect ordering when same file and dir name (#47863) 2026-02-16 19:08:13 +05:30
Cargo.toml util: Implement host independent Url to PathBuf conversion (#47474) 2026-01-23 14:10:40 +00:00
LICENSE-APACHE chore: Add crate licenses. (#4158) 2024-01-23 16:56:22 +01:00