diff --git a/src/Sorts/Strategies/DefaultSort.php b/src/Sorts/Strategies/DefaultSort.php index 6d45837..721bd17 100644 --- a/src/Sorts/Strategies/DefaultSort.php +++ b/src/Sorts/Strategies/DefaultSort.php @@ -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); } }