I have an array of values as such:

```
var array_1 = ["1W", "2W", "3W","1M", "2M", "3M", "6M","9M","1Y"]

```

W stands for weeks, M for months, Y for years. How do I do a string comparison such that a comparison between

`"1Y" > "9M"`

will return true