瀏覽代碼

[python] key order on dict is undefined

Simon Krajewski 11 年之前
父節點
當前提交
14e3fd1cdb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/unit/issues/Issue2856.hx

+ 1 - 0
tests/unit/issues/Issue2856.hx

@@ -9,6 +9,7 @@ class Issue2856 extends Test {
 			for (key in dict.keys()) {
 				acc.push(key + "=" +dict.get(key, null));
 			}
+			acc.sort(Reflect.compare);
 			return acc.join(";");
 		}