Skip to content

Commit

Permalink
Merge pull request #92 from TryV/patch-1
Browse files Browse the repository at this point in the history
fix: unqouted column name in DefaultSort
  • Loading branch information
abbasudo authored Oct 29, 2024
2 parents 5ad2361 + 2af0465 commit 828f71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sorts/Strategies/DefaultSort.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class DefaultSort extends SortAbstract
{
public function apply(): Builder
{
return $this->query->orderByRaw("$this->column $this->direction");
return $this->query->orderBy($this->column, $this->direction);
}
}

0 comments on commit 828f71f

Please sign in to comment.