Typescript - Sort strings descending
I'm trying to sort a string[] in descending way. So far what I have done is the code below:
let values = ["Saab", "Volvo", "BMW"]; // example
values.sort();
values.reverse();
It's working but I'm trying to figure out if there is a better way to do it.