Sorting Names Without Articles
Sort the bands array alphabetically without the articles
![bands array](/bands-array.4e843225.png)
First we need to strip the articles out of the names using a regular expression:
![strip function](/stip-function.018905c5.png)
Apply the sort method on the bands array using the strip function:
![sort method](/sort-method.42e168d1.png)
Sort the bands array alphabetically without the articles
First we need to strip the articles out of the names using a regular expression:
Apply the sort method on the bands array using the strip function: