Sorting a table component (not a resource) not working
Hello, I have a component which displays a table. The query is just the all() method on the relevant model.
I have some custom filters with select fields, that all work to update the query and therefore the table results.
I want the sort to be selectable, so I made a select field , with the option to sort a given column asc or desc.
The records will not update however:
This filter works the same way as the other, working filters, but it seems that ordering is restricted, because all the 'where's work, just the 'order's do not. What am I missing here?
Thanks
0 Replies