summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorGeorgi Genkov <g.genkov@student.tudelft.nl>2020-04-11 13:17:46 +0200
committerGeorgi Genkov <g.genkov@student.tudelft.nl>2021-05-18 10:42:06 +0200
commita8c83a7b354b9fa0f2a1f50b8b1ae39048ba869a (patch)
treec1c3f04742736b273a2baf41fa09be8a1fdec4e3 /editor/plugins/script_editor_plugin.cpp
parent510030fedc79cdcd75f9e1c3c1c195cba6c2703c (diff)
downloadredot-engine-a8c83a7b354b9fa0f2a1f50b8b1ae39048ba869a.tar.gz
Change EditorFileSystem and ScriptEditor file sorting order to improve consistency.
Fixes #37721.
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 893a9356a2..4bdd5c8f7f 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -1677,7 +1677,7 @@ struct _ScriptEditorItemData {
if (sort_key == id.sort_key) {
return index < id.index;
} else {
- return sort_key < id.sort_key;
+ return sort_key.naturalnocasecmp_to(id.sort_key) < 0;
}
} else {
return category < id.category;