From a8c83a7b354b9fa0f2a1f50b8b1ae39048ba869a Mon Sep 17 00:00:00 2001 From: Georgi Genkov Date: Sat, 11 Apr 2020 13:17:46 +0200 Subject: Change EditorFileSystem and ScriptEditor file sorting order to improve consistency. Fixes #37721. --- editor/plugins/script_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/plugins/script_editor_plugin.cpp') 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; -- cgit v1.2.3