I have a Laravel project, and I have an array like below.
array:12 [▼
0 => "آبان 1398"
1 => "آذر 1398"
2 => "اردیبهشت 1398"
3 => "اسفند 1397"
4 => "بهمن 1397"
5 => "تیر 1398"
6 => "خرداد 1398"
7 => "دی 1397"
8 => "شهریور 1398"
9 => "فروردین 1398"
10 => "مرداد 1398"
11 => "مهر 1398"
]
How can I sort it by values? For example, all records with 1398 after that 1397.