1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix sorting of files/dirs in dialogs

Sorts leading `_` before other characters except `.`.
This commit is contained in:
A Thousand Ships
2024-02-02 16:50:23 +01:00
parent fe01776f05
commit 2cbf469912
13 changed files with 181 additions and 93 deletions

View File

@@ -1892,7 +1892,7 @@ struct _ScriptEditorItemData {
if (sort_key == id.sort_key) {
return index < id.index;
} else {
return sort_key.naturalnocasecmp_to(id.sort_key) < 0;
return sort_key.filenocasecmp_to(id.sort_key) < 0;
}
} else {
return category < id.category;