Sort order of music file by physical name or track numebr in Twonky DLNA

I did it. A couple of pretty simple steps. First, I had to retag all my flacs with this free utility:

http://www.mp3tag.de/en/

I made a custom sort column there by folder + track_name and applied global track numbering. Worked pretty well.

Second, I enabled ssh on my WD My Book Live. Love that it is running full-featured Linux.

Third, added a couple of strings to a view-definitions.xml file: key words are

sortcriteria=‘+upnp:originalTrackNumber,+dc:title’ 

for container ‘byfolder’ and its subcontainer. Also added albumart=‘1’  there to show album art.

Now my folder view works as expected. While retagging, I added album name tags to missing albums so the view by album will also we OK now.

The lesson here is that all the possible tags should be filled out when ripping the disk. Otherwise there will be several types of issues.