You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
[Core] Fix sorting of Dictionary keys
`StringName` keys were sorted as `StringName` which is unstable.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user