How would I sort an array ascendingly in JavaScript?