Sorting a table with a view as a column
So i have this filament table that doesn't have tradition columns, but instead has a view as a column like in the first pic. I managed to sort this by adding a sortBy to the end of my query builder in ->query(), modifying its parameters and running resetTable() to see the changes. The problem is that ->query() only takes a query builder, and i have a column thats calculated afterward that you can't find in the database, and i want to sort using this column. If i had access to the collection that results from the query builder, sortBy('column') would work, but since its not an actual column in the database, adding sortBy to the query builder gives an error.
tl;dr: anyone know how i can access/sort a table's actual collection of records and not just the query builder from query()?
tl;dr: anyone know how i can access/sort a table's actual collection of records and not just the query builder from query()?
