How can I get the sorting applied in table to use it in view

Hello. I am exporting only the data that user has filtered, using:
$query = $this->getFilteredTableQuery();
$query = $this->getFilteredTableQuery();
And it works fine for me becuase the view only includes filtered data. But now I would also like that view to SORT the data exactly the same as the user has sorted in the table. Any ideas of how I can get that sorting information, please? Thank you.
Solution:
$this->getTableSortColumn();
$this->getTableSortDirection();
$this->getTableSortColumn();
$this->getTableSortDirection();
...
Jump to solution
2 Replies
Solution
toeknee
toeknee3mo ago
$this->getTableSortColumn();
$this->getTableSortDirection();
$this->getTableSortColumn();
$this->getTableSortDirection();
Albert Lens
Albert LensOP3mo ago
Great! It works fine. Thank you very much.
Want results from more Discord servers?
Add your server