Im trying use MySQL to order by excluding “excl” if it’s found at the start of a string, and using what ever comes after “excl” to order the results.
So it will order like this:
title a name
excl title b name2
title c name
title d name
But not:
title a name
title c name
title d name
excl title b name2
You want to tell the
ORDERclause that if the string begins with the text you’re looking for, then use a substring that comes after that string. So “excl title a” becomes “title a” as far as theORDERprocess is concerned.