Apart from setting the sorting order between dimensions and measures, you can also set the internal sorting order, underSorting.
Click the dimension or measure name to open the settings and click the sorting button to switch toCustomsorting. The following table shows the internal sorting priority order and sorting options. The sorting is eitherAscendingorDescending.
Sort by expression (Enter an expression to sort by. Only available for dimensions.)
Additionally, you can sort by load order by switching toCustomand leaving all sorting options un-selected.
If you have set a custom order for a field, that custom order will override any selected internal sort order inSorting.