I used this in a real world example and also did this for a challenge in #WorkoutWednesday2019.
You have many sorting options in Tableau. But I wanted to be able to sort by 4 different options, A – Z, Z – A, Ascending and Descending by the measure.
Here is my take on how to do it. Click the image to view the video