diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-09-27 15:56:54 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-10-18 08:47:05 +0200 |
commit | 79f654ced5525515091c99a8d23dccb9c2a09b35 (patch) | |
tree | 8f17f2ef6cf280af8c8df6039f123a1182a54169 /core/io | |
parent | 04692d83cb8f61002f18ea1d954df8c558ee84f7 (diff) | |
download | redot-engine-79f654ced5525515091c99a8d23dccb9c2a09b35.tar.gz |
[Core] Fix sorting of `Dictionary` keys
`StringName` keys were sorted as `StringName` which is unstable.
Diffstat (limited to 'core/io')
-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; |