diff --git a/tests/model/DataListTest.php b/tests/model/DataListTest.php index ee34d98d4..a9aca7127 100644 --- a/tests/model/DataListTest.php +++ b/tests/model/DataListTest.php @@ -69,7 +69,7 @@ class DataListTest extends SapphireTest { } function testToNestedArray() { - $list = DataList::create('DataObjectTest_TeamComment'); + $list = DataList::create('DataObjectTest_TeamComment')->sort('ID'); $nestedArray = $list->toNestedArray(); $expected = array( 0=>