Urutkan array berdasarkan panjang karakter di JS
arr.sort((a, b) => a.length - b.length)
Delightful Dove
arr.sort((a, b) => a.length - b.length)