summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-02-02 16:50:23 +0100
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-03-20 13:45:47 +0100
commit2cbf469912ae0e40049d3827db0c21cdf17c5a79 (patch)
tree64f57b6a0aefea73c9a1c62b3a703089bdb436e0 /editor/plugins/script_editor_plugin.cpp
parentfe01776f05b1787b28b4a270d53037a3c25f4ca2 (diff)
downloadredot-engine-2cbf469912ae0e40049d3827db0c21cdf17c5a79.tar.gz
Fix sorting of files/dirs in dialogs
Sorts leading `_` before other characters except `.`.
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index edec4af094..43afc6f7d5 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -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;