Evaluating 2 extremely simple arrays, one sorts ok and the other does not:
var qtr = ['zzqtr_1_2020','zzqtr_2_2020','zzqtr_3_2019','zzqtr_4_2019'];
qtr.sort();
// qtr is now zzqtr_1_2020, zzqtr_2_2020, zzqtr_3_2019, zzqtr_4_2019 (no change)
var fruits = ["a_1_Banana", "a_2_Orange", "a_1_Apple", "a_1_Mango"];
fruits.sort();
// fruits is now a_1_Apple, a_1_Banana, a_1_Mango, a_2_Orange (SORTED!)
What I cannot figure out is why the qtr array will not be sort properly?
2019items should go before2020.12will sort before3