I am fetching data from Supabase and displaying it a Data table.
Here I want to give users a way to click on column header and sort the data on that column.
Here I also have to show visually which column the data is sorted on and also show an indicator which will show whether the data is sorted in ascending order or descending order.
As there are no events except for tap, double tap and long press one cannot know as to on which column did the user click on.
Any ideas how we can implement this feature?