That way I wouldn’t be able to make it dynamic. I want to have the feature of sorting the table data on any field that the user chooses from the table header.
it is doable read the documentation for jsonata.
How is this possible using jsonata?
the jsonata official doco will help you with that