How to sort records in a table by more than one field?

For example: ORDER BY id DESC, parent_id ASC
1 Reply
Dan Harrin
Dan Harrin2y ago
->sortable(query: fn ($query) => $query->orderByDesc('id')->orderBy('parent_id'))
Want results from more Discord servers?
Add your server