This is a common issue in Fabric/PBI.
Debugging direct in PBI can be tricky; the easiest way to connect your Semantic Model to the sepatate tool - Tabular Editor and fix the sorting there.