sorting an array in javascript

/ Published in: JavaScript
Save to your folder(s)

If you need to sort an array in javascript this is how it should be done. Casting toLowerCase() is optional but but necessary if fx "Anne" was spelled "anne"

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.