I have an unsorted ArrayList of Strings of seasons and years like the following:
["Summer 2020", "Autumn 2018", "Spring 2019", "Autumn 2019", "Winter 2018", "Summer 2018", "Winter 2020", "Spring 2018"]
The correct sorting of this list is the following:
["Winter 2018", "Spring 2018", "Summer 2018", "Autumn 2018", "Spring 2019", "Autumn 2019", "Winter 2020", "Summer 2020"]
How can I achieve this order? The order of seasons in a year is like Winter 2021, Spring 2021, Summer 2021, Autumn 2021, and all the seasons for every year will not necessarily exist in the list.