Skip to content

Commit

Permalink
add sort by ID to the createDataList
Browse files Browse the repository at this point in the history
  • Loading branch information
ishannz committed Nov 3, 2024
1 parent a1e4daa commit 0c3f9d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DataObject/DataObjectFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ private function createDataList(?int $limit = null, ?int $offset = null): DataLi
{
$list = DataList::create($this->dataObjectClass);

return $list->limit($limit, $offset);
return $list
->sort('ID', 'ASC')
->limit($limit, $offset);
}

}

0 comments on commit 0c3f9d5

Please sign in to comment.