Преглед на файлове

Merge pull request #57052 from KoBeWi/nosort

Rémi Verschelde преди 3 години
родител
ревизия
e1706be25d
променени са 2 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 0 2
      core/variant/variant.cpp
  2. 1 1
      modules/gdscript/tests/scripts/parser/features/dictionary_lua_style.out

+ 0 - 2
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 += ", ";

+ 1 - 1
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}