Sort an Array

March 17, 2021 1 min read
const array = ['Z', 'A', 'D', 'M', 'K', 'T', 'J']

array.sort() // ["A", "D", "J", "K", "M", "T", "Z"]