diff --git a/src/Concerns/SortsQuery.php b/src/Concerns/SortsQuery.php index 469177ed..0b4dd6f8 100644 --- a/src/Concerns/SortsQuery.php +++ b/src/Concerns/SortsQuery.php @@ -36,7 +36,9 @@ public function allowedSorts($sorts): static */ public function defaultSort($sorts): static { - return $this->defaultSorts(func_get_args()); + $sorts = is_array($sorts) ? $sorts : func_get_args(); + + return $this->defaultSorts($sorts); } /**