Typescript - Sort strings descending
12:39 07 Nov 2016

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.

arrays typescript