Help - Search - Members - Calendar
Full Version: [albumlist panel] How to ignore 'The' when sorting by artist?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
Sphix
Any way to do this?!

Thx in advance smile.gif
CepiPerez
Somebody correct me if I'm wrong, but there's no way to do this.
But you create a metadata called artistext (or whatever) and tag the artists without the 'the' word.
Then you can use this metadata for sort and the artist metadata for display in the playlist.

Another easy way?... anybody?
gfngfgf
reference wiki

CODE
$if($strcmp($left(%artist%,4),The ),$right(%artist%,$sub($len(%artist%),4))', 'The,%artist%)

Use the code above in place of "%artist%" in your albumlist view. Note, though, that album list panel sorts by whatever is displayed, so if you want it to ignore "The" while sorting, then you also have to tolerate that the display will also be "Band, The" instead of "The Band".

edit: fixed code tag
Yotsuya
Well instead of sorting by %artist% you can sort by something like:

$ifequal($left($tolower(%artist%),4),the ,
$right(%artist%,$sub($len(%artist%),4)),
%artist%)

It's messy but it works. There are also several other messy approaches that have been discussed before.
Sphix
QUOTE(gfngfgf @ Nov 3 2006, 23:29) *

reference wiki

CODE
$if($strcmp($left(%artist%,4),The ),$right(%artist%,$sub($len(%artist%),4))', 'The,%artist%)

Use the code above in place of "%artist%" in your albumlist view. Note, though, that album list panel sorts by whatever is displayed, so if you want it to ignore "The" while sorting, then you also have to tolerate that the display will also be "Band, The" instead of "The Band".

edit: fixed code tag


Thanks dude! Exactly what I wanted, I've never seen the Foobar2000:Tips & Tricks session wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.