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
No known key found for this signature in database
GPG key ID: 2033189A662F8BD7
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;