Skip to content

Commit 0ffd743

Browse files
committed
Merge branch 'pkeogan-master' into develop
2 parents 7fce4ec + 2c46cce commit 0ffd743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/WithSorting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function applySorting(): Builder
7676

7777
// TODO: Test
7878
if ($column->hasSortCallback()) {
79-
$this->setBuilder(app()->call($column->getSortCallback(), ['builder' => $this->getBuilder(), 'direction' => $direction]));
79+
$this->setBuilder(call_user_func($column->getSortCallback(), $this->getBuilder(), $direction));
8080
} elseif ($column->isBaseColumn()) {
8181
$this->setBuilder($this->getBuilder()->orderBy($column->getColumnSelectName(), $direction));
8282
} else {

0 commit comments

Comments
 (0)