This might be more of a question than a bug, but I noticed that kid3 sorts (in the list of songs) "artist_-title_remix.ext" before "artist-_title.ext" - that is not correct from either an ascii (2e before 5f) or alphabetical (if sorting on the title, as an item with fewer characters should come before an item with more characters if all of the characters match) sort.
Can you tell me the reason for this (and if it is unintentional, would you consider "fixing" it)? :)
Thank you.
Don't know why italics showed up in there. The entries are supposed to be (I will put them as code this time):
Anyway, that is the order that kid3 displays them, but I believe the second song should come first.
I am a bit hesitant what to do in this case. If you look at the behavior of certain applications, both behaviors can be seen:
Kid3 (Linux, Mac), Finder (Mac), dolphin (KDE):
Kid3 (Windows), ls, Nautilus (Gnome), Explorer (Windows):
I personally would also think that your suggested behavior is the correct one. The behavior seems to be given by Qt, which uses ICU on Linux by default. ICU is also used on the Mac. I do not know why ICU is behaving like this. Because I use my own fixed version of the Qt file system model in Kid3, this issue could be fixed like this:
This will probably ignore both the
.and_characters (and all the other punctuation characters), which could lead to other less desired side effects. Maybe I should make it configurable?I would be happy with something configurable. I use linux, and actually override the locale for sorting in the shell ("LC_COLLATE=POSIX"), even though KDE doesn't use any of that locale information, so a POSIX sort option (to match what I see in a shell) would more than satisfy me. :)
Thanks, again.
This is now fixed in version git20190623 which can be found in the development folder.
Note, however, that this configuration option is not in the GUI, you have to quit Kid3 and modify the settings (e.g. ~/.config/Kid3/Kid3.conf for kid3-qt, ~/.config/kid3rc for the KDE version) to have
SortIgnoringPunctuation=truein the section[Files].Is now fixed in version 3.8.0.