From 2af0465b394f82a942d4b07ab3c92c757993ffa3 Mon Sep 17 00:00:00 2001 From: Ali Kesht Kar <35303148+TryV@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:56:12 +0330 Subject: [PATCH] fix: unqouted column name in DefaultSort --- src/Sorts/Strategies/DefaultSort.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }