Is this something that you looking for?
You need to apply sorting function only for sub-category by right clicking the Sub-Category pill in the Rows shelf, and go to Sort...
A sorting window will appear like image below.
Then you can apply the Sort order and Sort by according to requirement. Hope this helps