Reorder array of months

Viewed 46

I would like to sort an array of months in the reverse/regular month's order.

At the moment I have the following array

["August", "July", "June", "May", "April", "March", "February", "January", "September"]

I would like to be like

["September", "August", "July", "June", "May", "April", "March", "February", "January"]

I used the sort filter but it sorts in ascending or descending order only.

0 Answers
Related