diff --git a/tests/model/MapTest.php b/tests/model/MapTest.php old mode 100644 new mode 100755 index fae6d1e06..1f94f746b --- a/tests/model/MapTest.php +++ b/tests/model/MapTest.php @@ -24,7 +24,7 @@ class SS_MapTest extends SapphireTest { } function testIteration() { - $list = DataList::create("DataObjectTest_TeamComment"); + $list = DataList::create("DataObjectTest_TeamComment")->sort('ID'); $map = new SS_Map($list, 'Name', 'Comment'); $text = ""; foreach($map as $k => $v) {