summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/editor/gdscript_docgen.cpp
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-10-21 16:39:05 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-10-21 16:39:05 -0500
commit5fb22327eeeb230328dca8b7016e36a1c9aad740 (patch)
treeeb46860eb99a472ad645b312a4437c8942337a3e /modules/gdscript/editor/gdscript_docgen.cpp
parent5e65747d90411d58da46dd1a0dd0385280ff57ac (diff)
parent610635e1c8d8940397723052088979d16aa30a40 (diff)
downloadredot-engine-5fb22327eeeb230328dca8b7016e36a1c9aad740.tar.gz
Merge pull request #97542 from AThousandShips/dict_sort_fix
[Core] Fix sorting of `Dictionary` keys
Diffstat (limited to 'modules/gdscript/editor/gdscript_docgen.cpp')
-rw-r--r--modules/gdscript/editor/gdscript_docgen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/editor/gdscript_docgen.cpp b/modules/gdscript/editor/gdscript_docgen.cpp
index 32ef429b0d..758887a723 100644
--- a/modules/gdscript/editor/gdscript_docgen.cpp
+++ b/modules/gdscript/editor/gdscript_docgen.cpp
@@ -217,7 +217,7 @@ String GDScriptDocGen::_docvalue_from_variant(const Variant &p_variant, int p_re
List<Variant> keys;
dict.get_key_list(&keys);
- keys.sort();
+ keys.sort_custom<StringLikeVariantOrder>();
for (List<Variant>::Element *E = keys.front(); E; E = E->next()) {
if (E->prev()) {