Sort in Foobar playlist view [Columns UI = moved from General]
Reply #2 – 2013-01-05 16:34:47
... I noticed when you click on an album the tracks show up in the playlist in alphanumeric unless the tracknames are already numbered... This is because the default sort in foobar is %path_sort% . The order of the files in the directory is the order foobar will use to display them. To have them display in the correct order with %path_sort% as the default sort, files' names should at least begin with the tracknumber when it's a single disc album and discnumber followed by tracknumber when it's a multi-disc album.I tried Edit >Sort >Sort by and putting %Tracknumber% in front and it would work until the next time you clicked on that album Sorts defined there are temporary. foobar will revert to the default sort as you discovered.So I went to Preferences > columns ui > Playlist view and under the Columns tab I went to the Scripts tab in Column details and then to the Sort tab by checking "use custom sort script" and I entered %ALBUM% - %DISCNUMBER% - %TRACKNUMBER% - %DATE% - %ALBUM ARTIST% - %TITLE% but that didn't keep the sort permanent either. Still, I left these changes in place anyway. Custom sorts defined for Columns UI columns are also temporary and work only when clicking on the header for that column. Again, foobar will revert to its default sort.It wasn't until I right-clicked on the disordered album title and selected Properties and in the Properties window I noticed the Track Number line showed its multiple entries in non-numeric order. Again, this is likely due to %path_sort% and your files' names.***At the bottom of the Properties window on the left click the Tools button and select "Auto track number" and that made the numeric track order of the album stable the next time I clicked on it. *** As dba1989 pointed out, this shouldn't affect how files are sorted.The default sort can be changed. It's settings are located at Preferences > Shell Integration > Sort incoming files by: . If %ALBUM% - %DISCNUMBER% - %TRACKNUMBER% - %DATE% - %ALBUM ARTIST% - %TITLE% is the default sort that you want, enter it in the box located there.