Skip to main content

Topic: [albumlist panel] How to ignore 'The' when sorting by artist? (Read 3488 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • Sphix
  • [*][*][*]
[albumlist panel] How to ignore 'The' when sorting by artist?
Any way to do this?!

Thx in advance
-foobar2000 + Burrrn + EAC
-HD 80Gb using High QualityVBR MP3s

  • CepiPerez
  • [*][*][*][*]
[albumlist panel] How to ignore 'The' when sorting by artist?
Reply #1
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
  • [*][*][*][*][*]
[albumlist panel] How to ignore 'The' when sorting by artist?
Reply #2
reference wiki

Code: [Select]
$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
  • Last Edit: 04 November, 2006, 12:29:26 AM by gfngfgf

  • Yotsuya
  • [*][*][*][*][*]
[albumlist panel] How to ignore 'The' when sorting by artist?
Reply #3
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
  • [*][*][*]
[albumlist panel] How to ignore 'The' when sorting by artist?
Reply #4
reference wiki

Code: [Select]
$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 
-foobar2000 + Burrrn + EAC
-HD 80Gb using High QualityVBR MP3s