Help - Search - Members - Calendar
Full Version: How to sort by more than one criteria? help!
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
justhaveaq
genre|[$if2(%album artist%,%artist%)] - [%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)

That's what I have in my Album list.

How can I specifify sorting by genre AND date?

thank you
Synthetic Soul
QUOTE(justhaveaq @ Feb 14 2006, 10:17 AM)
genre|[$if2(%album artist%,%artist%)] - [%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)

That's what I have in my Album list.

How can I specifify sorting by genre AND date?
You're currently not sorting by genre, as the word genre has no % around it; that is text, not a placeholder.

To sort first by genre, then by (album) artist, etc.:

%genre%|[$if2(%album artist%,%artist%)] - [%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)

To sort first by genre, then by date, then by (album) artist, etc.:

%genre%|%date%|[$if2(%album artist%,%artist%)] - [%album%]|[[%disc%.][$num(%tracknumber%,2).] ]$if2(%title%,%_filename_ext%)

I'm not that up on sort strings but I would have thought you could just do:

%genre%|%date%|$if2(%album artist%,%artist%)|%album%|%disc%|$num(%tracknumber%,2)|$if2(%title%,%_filename_ext%)

If you start using 0.9b it should be shortened to:

%genre%|%date%|%album artist%|%album%|%discnumber%|%tracknumber%|%title%
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.