Skip to content

Commit 76dda4b

Browse files
committed
✨ specify table on sorts
1 parent ba7f3ed commit 76dda4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query/Traits/PerformSearch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function sort($field, $direction = 'asc') {
8585

8686
public function applySorts($sorts) {
8787
foreach ($sorts as $sort) {
88-
$this->sort($sort['field'], $sort['direction'] ?? 'asc');
88+
$this->sort($this->queryBuilder->getModel()->getTable().'.'.$sort['field'], $sort['direction'] ?? 'asc');
8989
}
9090
}
9191

0 commit comments

Comments
 (0)