Help - Search - Members - Calendar
Full Version: Columns UI - sorting question
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Squeller
Hi,

on loading a directory into a playlist, everything will be sorted fine if the id3 tags are there. If I click on a column foobar sorts again. I don't find a way to undo this sort or sort properly by album and track number?!

Edit: I think I need to set a "custom sort spec". But I dont know the syntax: How can I sort:

first by album
then by track number?
Ruby
QUOTE(Squeller @ Jul 29 2004, 07:36 PM)
Edit: I think I need to set a "custom sort spec". But I dont know the syntax: How can I sort:
first by album
then by track number?
*


For example:
CODE
%album%|$num(%tracknumber%,4)
acedriver
how about this?
CODE
$directory(%_path%,2)%artist%$num(%date%,2)%album%$num(%tracknumber%,2)
Squeller
Thanks ppl. Both ideas work. Could someone point me to a good syntax documentation?

In "%album%|$num(%tracknumber%,4)"

the "|": Its often uses as a logical OR

but when sorting you usually want to search like

first a, AND then b, AND then c.

What does "|" in fb2k mean?
Paranoia
I always thought it was just a seperator between terms.
kalmark
I use "-" as a separator, and it has not let me down before smile.gif
Ruby
"|" is a habit picked up from the album list, where it has a kind of "grouping" meaning, but in this case it's just a random separator character. tongue.gif
esa372
Maybe you guys can help... smile.gif

In FB2K, when I pull an artist from the Album List into the Playlist, I'd like all the albums to be sorted by date. The string below works in the '[right click]>Sort >Sort by...' option, but is it possible to automate this? I've tried the string in the 'Use custom sort spec' field in Colomns UI, but it seems to make no difference.

Any ideas?

Thanks,

~esa

CODE
%artist% - $num(%date%,2) - %album% - $num(%tracknumber%,3) - %title%
picmixer
Add your sort string in "preferences - core - sort incoming files by". That should do the trick.
esa372
That did it... biggrin.gif

Thanks, picmixer!

~esa
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.