Contact: aviboots(AT)netvision.net.il
41,213 questions
53,714 answers
573 users
let arr = ['php', 'typescript', 'c', 'python', 'c++', 'c#']; arr = arr.sort((a,b) => a.length - b.length); console.log(arr); /* run: ["c", "c#", "php", "c++", "python", "typescript"] */