Artist -- Year -- Album\Artist -- Year -- Album -- Tracknumber TrackTitle.
Or
Compilation or Movie Title\Compilation or Movie title -- Tracknumber Artist -- TrackTitle
Some additional cues can be added, like CD1, CD2, or a volume number.
The goal is to be able to sort all files by alphabetical order in any list. The double - between each part allows to use the single - in names like Jean-Michel Jarre, for example.
Here is Foobar2000 playlist formatting string :
$num(%_playlist_number%,$len(%_playlist_total%)).
$if2(%artist%,unknown artist)
$tab(2)
$if2(%title%,%_filename_ext%)
$tab(3)
//If the directory is 'various', then the tag 'album' is displayed, else the last part of the directory name is displayed
//Directory parts are at most 3, and are separated by the string '--'
$if(
$strcmp(%_directoryname%,'Various') ,
//Then1
%album%,
//Else1
$ifgreater($strstr($right(%_directoryname%,$sub($sub($len(%_directoryname%),$strstr(%_directoryname%,'--')),2)),'--'),1,
//Then2
$right(%_directoryname%,$sub($sub($len($right(%_directoryname%,$sub($sub($len(%_directoryname%),$strstr(%_directoryname%,'--')),2))),$strstr($right(%_directoryname%,$sub($sub($len(%_directoryname%),$strstr(%_directoryname%,'--')),2)),'--')),2))
//Else2
,$ifgreater($strstr(%_directoryname%,'--'),1,
//Then3
$right(%_directoryname%,$sub($sub($len(%_directoryname%),$strstr(%_directoryname%,'--')),2)),
//Else3
%_directoryname%
)
)
)
$tab(4)
$if(%_isplaying%,'|> ')
[['['$if2(%__codec%,$upper($ext(%_path%)))']' ]$pad_right(%_length%,5,0)]