mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix sorting of files/dirs in dialogs
Sorts leading `_` before other characters except `.`.
This commit is contained in:
parent
fe01776f05
commit
2cbf469912
13 changed files with 181 additions and 93 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue