Another Question:
How to ignore leading "The", etc. when sorting, but without set "The" at the end.
Is this possible?
It's almost the same:
$if($stricmp($left(%ALBUM ARTIST%,4),'The '),$substr(%ALBUM ARTIST%,5,$len(%ALBUM ARTIST%)),%ALBUM ARTIST%)
I'd like to sort similarly, but leaving "The " at the beginning. I enjoyed the ability to use a custom sort string in the library in 0.8.3.
Currently, I use Frank Bicking's Facets with the string:
[$if($strcmp($left(%album artist%,2),A ),$right(%album artist%,$sub($len(%album artist%),2))', 'A,%album artist%)]
to take care of the "A " Artists since as it is currently, Facets takes care of "The " artists.
Previously I had used:
$if3($if($strcmp($left(%album artist%,2),A ),$right(%album artist%,$sub($len(%album artist%),2))', 'A),$if($strcmp($left(%album artist%,4),The ),$right(%album artist%,$sub($len(%album artist%),4))', 'The),%album artist%)
Which moved both "A " and "The " to the end of the string name. I might start using CWB Hooks with $cwb_ltrim(%artist%,The ,A ,La ,El ,Los ) if it works with 0.9.5 (I don't know if it does).