Skip to content
Browse files

When relying on the order of returned objects, sort explicitly as it …

…is nondeterminate for non-MySQL.
  • Loading branch information...
1 parent 89ec7e6 commit 9dac9e5675529ac444438f1d176b8bbf089638f1 @simonwelsh simonwelsh committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/model/DataListTest.php
View
2 tests/model/DataListTest.php
@@ -69,7 +69,7 @@ function testLeftJoin() {
}
function testToNestedArray() {
- $list = DataList::create('DataObjectTest_TeamComment');
+ $list = DataList::create('DataObjectTest_TeamComment')->sort('ID');
$nestedArray = $list->toNestedArray();
$expected = array(
0=>

0 comments on commit 9dac9e5

Please sign in to comment.
Something went wrong with that request. Please try again.