Ensure correct query type is passed to orderBy

This commit is contained in:
Dan
2022-03-01 09:56:10 -05:00
parent 4d98d2026b
commit f8a72139e9
@@ -95,7 +95,7 @@ trait InteractsWithTableQuery
$this->getRelatedModel($query)->query(),
$query,
$sortColumnName,
),
)->getQuery(),
$direction,
),
fn ($query) => $query->orderBy($sortColumnName, $direction),