First you sort by the path ... and if in that path there are files with a discnumber, then this is sorted, ascending, but each number is taken only once. Then the entries for TRACK are sorted, also ascending.
I would say that this is not random (which you could easily try out).
What puzzles me is the first sort criterion _PATH - wouldn't $loop(%albumartist%%album%) make much more sense?
Not, if ALBUMARTIST is filled with decent data, e.g. "Various Artists" for a compilation.
Alternatively, you could sort by %album%$num(%discnumber%,1) - but there I see the problem that "Greatest Hits" may be sorted all into 1 group.
But I don't know what your data looks like, perhaps _PATH is the best initial criterion.
artist
title
Album Title (same across the whole compilation)
track number (2 digits so no Track/Total Tracks)
Genre
CD Number (2 digits only so no DISC/Total Discs)
and that is it.
edit: So I want sorted by CD nr (low to high) and per CD per track number (also low to high (with 1 being low
AlbumArtist is an essential field for most current players. This is the field that will allow their libraries to distinguish common album title like Greatest Hits, but even some others like “Faith” by both Faith Hill and George Michael as an example. For most albums you can simply copy the value you already have from the Artist field. Be sure to remove any contributing artists, etc.
Deciding on an appropriate AlbumArtist name for your library to assign to compilation albums is also key to ensuring good library management. The most common one is “Various Artists” but you can decide what works best for you.
Once you have this field, creating directory folder structures becomes a very simple task.
I am not creating a Directory Structure. I am just creating a text file with the listing of the CD's under divided by CD Nr and within the CD the Tracks sorted by Number 1
It is the same concept whether you are updating the file directory, or exporting the data - if you want to keep the albums grouped together the common factor is a consistent AlbumArtist field. If you make this update it will be much easier to do anything else later on.
Exactly. The $loop(%discnumber%,1) would limit the occurrance of the sort criterion to the first incidence. But as you alread sorted by path which most likely also includes the discnumber, further limitatons would not be necessary.