JavaScriptlet array = ['a2', '22', 'a10', '10', 'a11', '1']
document.body.textContent = array.sort(Intl.Collator(0, {numeric: true}).compare)
Thanks to japanfever who basically reached this one line approach!
An entry from the gengns log, written by Génesis García Morilla · · JavaScript
JavaScriptlet array = ['a2', '22', 'a10', '10', 'a11', '1']
document.body.textContent = array.sort(Intl.Collator(0, {numeric: true}).compare)
Thanks to japanfever who basically reached this one line approach!