summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-23 00:27:01 +0100
committerGitHub <noreply@github.com>2022-01-23 00:27:01 +0100
commite1706be25dae883aeba7e1971f2a9c7bcd23ca6e (patch)
tree3e8e65837c60bb8a7cc5adc26a3920ff02def3c2
parent649aa547a3a56bcdf2ed2a93b919b7f71705c243 (diff)
parentf056cb8ebcc7c18a112255ac784e137c31c32ce3 (diff)
Merge pull request #57052 from KoBeWi/nosort
-rw-r--r--core/variant/variant.cpp2
-rw-r--r--modules/gdscript/tests/scripts/parser/features/dictionary_lua_style.out2
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}