I'm asking this question to quality check myself and see if more experienced Javascript coders might have a better approach...

I have an array of titles, some of which begin with "The". I don't want "The" to be taken into account when sorting the titles. My planned approach is to use regex to cut "The" from the beginning of the value then splice it onto the end of the value before sorting the array. For example, modify "The Right Stuff" to be "Right Stuff, The". 

My question: is there a better/more efficient way of doing this than iterating through the array and making the regex modifications?

**EDIT**: Thanks to all who took the time to respond (and sorry for the delay). I played around with both methods (regex cut and splice as well as comparison). I ended up going the comparison route which fit best into the flow of my script.