From 85194da3265c3e101071ac71d657319b718ea209 Mon Sep 17 00:00:00 2001 From: PeopleSea <70972819+People-Sea@users.noreply.github.com> Date: Thu, 11 Sep 2025 22:30:19 +0800 Subject: [PATCH] fix: ensure default key sort check is not bypassed by existing query orders --- packages/tables/src/Concerns/CanSortRecords.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tables/src/Concerns/CanSortRecords.php b/packages/tables/src/Concerns/CanSortRecords.php index d405636d08..1d30988277 100644 --- a/packages/tables/src/Concerns/CanSortRecords.php +++ b/packages/tables/src/Concerns/CanSortRecords.php @@ -111,7 +111,7 @@ trait CanSortRecords $query = $defaultSort; } - if (filled($query->getQuery()->orders) && (! $this->getTable()->hasDefaultKeySort())) { + if (! $this->getTable()->hasDefaultKeySort()) { return $query; }