const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' }); array.sort(collator.compare);