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