Skip to content

Commit 397ac45

Browse files
committed
Fix sorting and pagination on empty records
1 parent b8e6663 commit 397ac45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/QueryDataTable.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,10 @@ protected function prepareQuery()
140140

141141
if ($this->totalRecords) {
142142
$this->filterRecords();
143-
$this->ordering();
144-
$this->paginate();
145143
}
144+
145+
$this->ordering();
146+
$this->paginate();
146147
}
147148

148149
$this->prepared = true;

0 commit comments

Comments
 (0)