mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
[Core] Fix sorting of Dictionary keys
`StringName` keys were sorted as `StringName` which is unstable.
This commit is contained in:
parent
04692d83cb
commit
79f654ced5
5 changed files with 20 additions and 8 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue