JSFiddle - React, Tailwind, and code Playground
JavaScript
var arr = ["sträng a 10", "sträng 01", "sträng 15", "sträng 60", "sträng 7", "sträng a 15", "sträng a 30", "sträng a 5"];
Array.prototype.alphabeticalSort = function() {
return this.sort(function(a, b){
return a.localeCompare(b, 'sv', { numeric: true })
});//sort
}//alphabeticalSort
console.log(arr.alphabeticalSort());