diff options
| author | Georgi Genkov <g.genkov@student.tudelft.nl> | 2020-04-11 13:17:46 +0200 |
|---|---|---|
| committer | Georgi Genkov <g.genkov@student.tudelft.nl> | 2021-05-18 10:42:06 +0200 |
| commit | a8c83a7b354b9fa0f2a1f50b8b1ae39048ba869a (patch) | |
| tree | c1c3f04742736b273a2baf41fa09be8a1fdec4e3 /editor/plugins/script_editor_plugin.cpp | |
| parent | 510030fedc79cdcd75f9e1c3c1c195cba6c2703c (diff) | |
| download | redot-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.cpp | 2 |
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; |
