Replies: 2 comments 8 replies
-
There is not for that reason, I usually pass it in with the route:
That way it's not part of the query. |
Beta Was this translation helpful? Give feedback.
4 replies
-
I added default sorting with my forked branch for work. In public string $defaultSortColumn = '';
public string $defaultSortColumnDirection = 'asc'; And then in the if (! empty($this->defaultSortColumn) && empty($this->sorts)) {
return $query->orderBy($this->defaultSortColumn, $this->defaultSortColumnDirection);
} And then for each table you can choose the default sort column and direction |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Chances are that I am missing this part of the docs - is there a way to apply a default sort?
I have tried doing it in the
query()
however this causes the orderBy to be applied to all frontend sorting too.Beta Was this translation helpful? Give feedback.
All reactions