Trouble with sorting on table

Hey
How do you perform the search in the first place? Do you use setFilter or do you make a new data collection query? Make sure you add .ascending(“fieldkey”) to your query otherwise you will loose it. or what ever sort you have of course.