I am attempting to organize an array of seasons based on season and year, all while eliminating any duplicate seasons. Merely sorting the array did not produce the desired outcome, so I believe utilizing a regex might solve the issue.
const myStringArray = ["Winter 17", "Summer 13", "Winter 15", "Summer 12", "Winter 17", "Summer 12", "Summer 17"]
console.log(_.uniq(myStringArray).sort(function(a, b) {
return b - a;
}));
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js"></script>