I have a list of titles that I am pulling from the database sorted alphabetically ie:
[
'Morning Glory',
'Red',
'Skyline',
'The Next Three Days'
]
What would be the best way to re-sort this list of titles ignoring “The” so that it would become:
[
'Morning Glory',
'The Next Three Days',
'Red',
'Skyline'
]
1 Answer