RelationshipManager Table Ordering

Is there a method I am missing, to allow sorting the table by an order of a relationships relationship?

For example, we have a resource showing a list of rows, which then shows data from a relationship, then shows more data from that relationships relationship and I want to order by the order column in the end relaitonship so:

Items -> Sub Item -> sub data.order
Solution
You can inject the query in ->defaultSort() though 🤔

->defaultSort(function (Builder $query) {
   // 
})
Was this page helpful?