Contact: aviboots(AT)netvision.net.il
41,395 questions
53,941 answers
573 users
let st = new Set([4, 2, 7, 3, 1, 6, 5]); const sorted = Array.from(st).sort((a, b) => b - a); st = new Set(sorted); console.log([...st].join(' ')); /* run: "7 6 5 4 3 2 1" */