diff options
author | kobewi <kobewi4e@gmail.com> | 2022-01-22 02:15:41 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-01-22 13:45:02 +0100 |
commit | f056cb8ebcc7c18a112255ac784e137c31c32ce3 (patch) | |
tree | 697e6d8934a8b98196900b15dbc61d11ec394bf2 | |
parent | 0e2842d5b2f8c06157c1c3b143c00aecc6c2c99a (diff) |
Don't sort printed Dictionary
-rw-r--r-- | core/variant/variant.cpp | 2 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/dictionary_lua_style.out | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/core/variant/variant.cpp b/core/variant/variant.cpp index 0f981d0c9e..38610c4f29 100644 --- a/core/variant/variant.cpp +++ b/core/variant/variant.cpp @@ -1692,8 +1692,6 @@ String Variant::stringify(int recursion_count) const { pairs.push_back(sp); } - pairs.sort(); - for (int i = 0; i < pairs.size(); i++) { if (i > 0) { str += ", "; diff --git a/modules/gdscript/tests/scripts/parser/features/dictionary_lua_style.out b/modules/gdscript/tests/scripts/parser/features/dictionary_lua_style.out index 447d7e223c..5b0ea9df43 100644 --- a/modules/gdscript/tests/scripts/parser/features/dictionary_lua_style.out +++ b/modules/gdscript/tests/scripts/parser/features/dictionary_lua_style.out @@ -1,2 +1,2 @@ GDTEST_OK -{2:4, a:1, b:2, with spaces:3} +{a:1, b:2, with spaces:3, 2:4} |