Sorting Names Without Articles

Sort the bands array alphabetically without the articles

bands array

First we need to strip the articles out of the names using a regular expression:

strip function

Apply the sort method on the bands array using the strip function:

sort method