Skip to content

Commit

Permalink
fix: unqouted column name in DefaultSort
Browse files Browse the repository at this point in the history
  • Loading branch information
TryV authored Oct 29, 2024
1 parent 5ad2361 commit 2af0465
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 2af0465

Please sign in to comment.