Setting Sorting Results from Data Master as variable, then changing Sort

Kevin shared this question 2 years ago

Hi -- I am trying to set the results of a ascending (A-Z) sort from a Data Master - Data List after clicking on the title of the column name. I want to click on the column name again to then sort the results in descending order (Z-A).

Questions are: 1) How do I set the original sort results as a variable, and 2) How do I say when the original variable is true, sort in descending order.

Thank you!