Your request is similar to this question ...
Listing all Artists from Album into One Tag Field
/t/14438/1
I have modified my export script proposal from there to apply here.
1: $filename($getEnv('USERPROFILE')'\Desktop\Mp3tag.Report.PrepareArtistSortByNumberOfFiles.txt',UTF-8)2: $loop(%ARTIST%)$puts(CountFiles,0)$loop(%ARTIST%)$loop(%_path%)$puts(CountFiles,$add($get(CountFiles),1))$loopend()$loopend()
3: $loop(%ARTIST%)'"'%ARTIST%'","'$get(CountFiles)'","'%_path%'"'
4: $loopend()$loopend()
5: $puts(Info,'This Mp3tag export script creates a report text file of format CSV (comma separated values).')
6: $puts(Info,'The CSV columns are: "Artist","CountFiles","Filepath".')
7: $puts(Info,'The CSV output list is sorted by "Artist".')
8: $puts(Info,'The CSV column "CountFiles" contains the sum of files per artist, which have been collected from the files of the related Artist.')$puts(Info,)
You have to import the report output file into the selected files, ...
using the converter "Textfile -Tag" with a format string like ...
"%DUMMY%","%SumOfFilesPerArtist%","%_path%"
The import process complains about empty lines, which cannot be parsed, this can be ignored.
You have to create a column in the Mp3tag grid view for the new tag field ...
Name = SumOfFilesPerArtist
Value = %SumOfFilesPerArtist%
Numerical = yes
Then sort the track list using this column.
20131117.PrepareArtistSortByNumberOfFiles.mte (755 Bytes)
DD.20131117.1118.CET
20131117.PrepareArtistSortByNumberOfFiles.mte (755 Bytes)