diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-10-21 16:39:05 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-10-21 16:39:05 -0500 |
commit | 5fb22327eeeb230328dca8b7016e36a1c9aad740 (patch) | |
tree | eb46860eb99a472ad645b312a4437c8942337a3e /core/io/json.cpp | |
parent | 5e65747d90411d58da46dd1a0dd0385280ff57ac (diff) | |
parent | 610635e1c8d8940397723052088979d16aa30a40 (diff) | |
download | redot-engine-5fb22327eeeb230328dca8b7016e36a1c9aad740.tar.gz |
Merge pull request #97542 from AThousandShips/dict_sort_fix
[Core] Fix sorting of `Dictionary` keys
Diffstat (limited to 'core/io/json.cpp')
-rw-r--r-- | core/io/json.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/json.cpp b/core/io/json.cpp index 664ff7857b..22219fca29 100644 --- a/core/io/json.cpp +++ b/core/io/json.cpp @@ -121,7 +121,7 @@ String JSON::_stringify(const Variant &p_var, const String &p_indent, int p_cur_ d.get_key_list(&keys); if (p_sort_keys) { - keys.sort(); + keys.sort_custom<StringLikeVariantOrder>(); } bool first_key = true; |