I'm trying to filter a table, and then sort those results based on results from a form being passed to the script. The problem I'm having is that it will either sort, or filter, but it will never do both; this lead me to believe that the best way to handle it would be to pass the filtered data onto a temporary table so that it could be sorted, but I have absolutely no idea how to do this(I don't even know if it's do-able 😮), any help or suggestions would be much obliged.
Edit: The subject should have been more clear.