fix: ensure default key sort check is not bypassed by existing query orders

This commit is contained in:
PeopleSea
2025-09-11 22:30:19 +08:00
parent f5ba340385
commit 85194da326
@@ -111,7 +111,7 @@ trait CanSortRecords
$query = $defaultSort;
}
if (filled($query->getQuery()->orders) && (! $this->getTable()->hasDefaultKeySort())) {
if (! $this->getTable()->hasDefaultKeySort()) {
return $query;
}