Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Sort incoming files issue (Read 9626 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Sort incoming files issue

Hi everyone,
I'm having one little issue with Foobar - that is when I add songs to a playlist, they are in no particular order. For example, each time I make a playlist, or am using the "Library Viewer Selection" playlist, I have to manually click the name of the column I would like the songs sorted by. Ideally, they would sort by album, track number, and if there is no track number, then by file name automatically. So I did some searching and found the Preferenes>General>Sort incoming files by: box. I tried various combinations of options based on the syntax guide in the help area, yet my playlists still dont sort themselves. Any ideas what's up? Thanks alot.

Sort incoming files issue

Reply #1
Try one the following:
Code: [Select]
%ALBUM ARTIST% - %DATE% - %ALBUM% - %DISCNUMBER% - %TRACKNUMBER% - %TITLE%


If you want to avoid sorting artist names with "the", try this more elaborate sort:
Code: [Select]
$if($strcmp($strstr(%album artist%,The ),1),$right(%album artist%,$sub($len(%album artist%),4))', The',%album artist%) %date% %album% %discnumber% %tracknumber%,2 %title% $num(%_length_seconds%,6) %bitrate%

Sort incoming files issue

Reply #2
$if($strcmp($strstr(%album artist%,The ),1),$right(%album artist%,$sub($len(%album artist%),4))', The',%album artist%)

That is the same as $swapprefix(%album artist%), by the way.

Sort incoming files issue

Reply #3
sorry, these don't affect the order. Even something as simple as %tracknumber% has no effect.

Sort incoming files issue

Reply #4
The preference you found has - up to this point - always sorted out this sorting issue.

So, from a different direction, paste your string from this preference here so we can see.
It would be my guess that you have some tagging issues. We can help with those.

You should be able to figure out some of this. Try a simple %field of your choice% sort in preferences and take a look at what happens.

Then take a look and if your playlist is funky, the next step is to select all the tracks in playlist and right click > properties and see what values you have in the sort field. Something is bound to jump out at you.

terry

Sort incoming files issue

Reply #5
Yeah, it's got to be something stupid that I'm missing. My current string is as follows:
Code: [Select]
%tracknumber%
.
As you can see, my files are tagged, and yet are not correctly sorted.

Sort incoming files issue

Reply #6
Please confirm:

You made the change in preferences and then RELOADED the playlist.

terry

Sort incoming files issue

Reply #7
Looks like you are selecting items from the album list.

Their sort order depends on how they are displayed there. If you do not include individual tracks in the album list pattern (e.g. %album artist%|%album% instead of %album artist%|%album%|%tracknumber%. %title%), the sort order will be undefined.

Clarification: The "Sort incoming files by" setting has no effect on this.

Sort incoming files issue

Reply #8
No problem: as you can see, the prefs are set up like this.


And yes, I reloaded the playlist.

Sort incoming files issue

Reply #9
Check Frank's reply.

terry

Sort incoming files issue

Reply #10
Looks like you are selecting items from the album list.

Their sort order depends on how they are displayed there. If you do not include individual tracks in the album list pattern (e.g. %album artist%|%album% instead of %album artist%|%album%|%tracknumber%. %title%), the sort order will be undefined.

Clarification: The "Sort incoming files by" setting has no effect on this.

Thanks so much you guys - by editing my album list sorting string, I corrected the problem 

Sort incoming files issue

Reply #11
Looks like you are selecting items from the album list.

Their sort order depends on how they are displayed there. If you do not include individual tracks in the album list pattern (e.g. %album artist%|%album% instead of %album artist%|%album%|%tracknumber%. %title%), the sort order will be undefined.

Clarification: The "Sort incoming files by" setting has no effect on this.

Thanks so much you guys - by editing my album list sorting string, I corrected the problem 


hey srr could you share your album list sorting string with me? im having the same problem! thanks

 

Sort incoming files issue

Reply #12
so under the media library viewer, there is selectioin menu "view".  whatever it is here, eg., by folder structure.  then when you add to play list (by highlighting and  hitting enter) it will add it to the playlist in the same order. so if you want it sorted by album., select "by album" under view. it will change the way things look int he media library viewer and the way they are added to the playlist.

Under Preferences>media libray>album list, I use the below for "by album". set it at top of list and it works for me.
"%album artist%|%album%|%tracknumber%" and it works for me.