// sort strings strings.sort((a, b) => a.localeCompare(b))
How to sort strings in JavaScript
String ⟩ .localeCompare()
Last updated 2 years ago