Artist sort order and multiple artists appears to behave incorrectly



For months now I’ve been trying to get consistent artist sorting behavior out of Kodi, but to no avail. I’ve tried to reproduce the problem below. I have no advancedsettings.xml file, so as far as that is concerned we’re only looking at default Kodi behavior here. Relevant settings:
 

  • Default provider for album information: Generic Album Scraper
  • Default provider for artist information: Generic Artist Scraper
  • Prefer online information: OFF
  • Use artist sortname when sorting by artist: ON

I deleted the MyMusicXX.db file and rebooted to create a new, clean database. Then I scanned the album “Tunnel Trance Force 22” by various artists (MusicBrainz release ID dc5e3047-1fa0-40b7-9ade-ae16d5bbd057). This is now the ONLY album in the database. Under MainMenu->MusicArtists the following list of artists appears:
 

  1. 666
  2. DJ Bart
  3. Beam vs. Cyrus
  4. DJ C7
  5. Divino
  6. Goddess
  7. Godfather’s Dome
  8. JFS
  9. Lothos
  10. Lovestern Galaktika Project
  11. Malixx
  12. Megara vs. DJ Lee
  13. Nightflow
  14. Nightsliders
  15. Ole van Dansk
  16. Pulsedriver
  17. Sunfactor
  18. Sven De Mar
  19. Trance Allstars
  20. Various Artists
  21. Vincent Vega
  22. Wavescope

Most of this is correct, until we get to entry 15, Ole van Dansk. He appears on track 3 (and only there). In MB Picard the relevant tags for this track are as follows:
 

  • Artist: Lovestern Galaktika Project meets Pulsedriver & Ole van Dansk
  • Artists: Lovestern Galaktika Project; Pulsedriver; Ole van Dansk
  • Artist Sort Order: Lovestern Galaktika Project meets Pulsedriver & Dansk, Ole van
  • Album Artist: Various Artists
  • Album Artist Sort Order: Various Artists

(For brevity I have omitted MB artist id, release id etc, however I have checked them and they are all correct.)

This is inconsistent. Multiple artists in the ‘Artists’ tag are listed separately, as one would expect. However, only the first artist (Lovestern Galaktika Project) is sorted as per the Artist Sort Order tag. The others are listed by first name.

Let’s look at another “problem entry”, Sven De Mar who appears on track 13 (and only there):
 

  • Artist: Vincent Vega meets Sven De Mar
  • Artists: Vincent Vega; Sven De Mar
  • Artist Sort Order: Vega, Vincent meets De Mar, Sven
  • Album Artist: Various Artists
  • Album Artist Sort Order: Various Artists

Once again the second artist in the Artist Sort Order field is sorted inconsistently (by first name). In contrast, entries 2 and 4in the lists of artists (DJ Bart and DJ C7, respectively) are sorted correctly. They appear on track 2 and 1 respectively, tagged as follows:
 

  • Artist: DJ C7
  • Artists: DJ C7
  • Artist Sort Order: C7, DJ

and
 

  • Artist: DJ Bart
  • Artists: DJ Bart
  • Artist Sort Order: Bart, DJ

I have repeated the above exercise with different albums (each time starting with a clean database) and this inconsistent behavior is consistent: when there are multiple artists in the artists field, only the first entry is sorted correctly, the rest simply by whatever characters the string starts with.

Is this a feature, a bug, or a lack of understanding on my part?

// FvW