Skip to content

Commit 69c75b6

Browse files
authored
Merge pull request #2803 from yajra/patch-sorting
[9.x] Fix sorting and pagination on empty records
2 parents b8e6663 + 397ac45 commit 69c75b6

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)