Skip to content

Commit

Permalink
Merge branch 'pkeogan-master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
rappasoft committed Jul 25, 2022
2 parents 7fce4ec + 2c46cce commit 0ffd743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/WithSorting.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function applySorting(): Builder

// TODO: Test
if ($column->hasSortCallback()) {
$this->setBuilder(app()->call($column->getSortCallback(), ['builder' => $this->getBuilder(), 'direction' => $direction]));
$this->setBuilder(call_user_func($column->getSortCallback(), $this->getBuilder(), $direction));
} elseif ($column->isBaseColumn()) {
$this->setBuilder($this->getBuilder()->orderBy($column->getColumnSelectName(), $direction));
} else {
Expand Down

0 comments on commit 0ffd743

Please sign in to comment.