'Power Bi Metrics Not Sorting Quarters By Right Order of Years

I have created a metrics visual in Power Bi with quarters by year. my problem is that it is sorting the visual By number of quarter and not of a year, like here in the picture below:

enter image description here

Any Suggestions?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source