JavaScript30 day 17: Sorting band names without articles

Today’s challenge was to use of Array.prototype.sort() to sort a list of band names alphabetically. The challenging part was to ignore the articles A, An or The at the start of a name.

My initial solution was quite long and I didn’t think to use a regular expression to find the article - something to bear in mind for next time!

The source is available at github and the live version is here.