Tauon
                                
                                
                                
                                    Tauon copied to clipboard
                            
                            
                            
                        "Sort by Imported" is splitting an ablum
I've recently added to my main playlist two new albums, one called "My Favorite" and one called "+01".
When I sorted the playlist with the "Sort by Imported" button to see the two new albums in the bottom of the list, however, the album My Favorite suddenly split into two.

On the contrary, sorting by filepath/artist... or any other option doesn't split the album.

I noticed that this is happening only when the two albums My Favorite and +01 are together. If I delete from the playlist the +01 album, sorting the playlist "by Imported" doesn't split the album My Favorite.
Both the two albums are in the same folder and have been tagged with kid3. I'll show proof if needed. I'm using the latest AUR version.
The imported order sort and the sort by filepath do use slightly different algorithms. Its just a matter of that being what it is I think. The main issue is the tracks all being in the same folder, where at the import stage Tauon expects that each folder is its own album.
The only odd thing about what you said to me is in regards to having removed the +01 album then doing sort by imported is that in that case the tracks should still be showing in an incorrect order?
It would be interesting to see the naming scheme of these files, that might give an idea of where it's tripping up. (At the import stage, the filename is all the importer has to go on, since the tag scan is done later)
The main issue is the tracks all being in the same folder
I'm sorry, I haven't explained it clearly. What I meant by "in the same folder" is that every track is in its own album folder, and both folders are inside one other folder (artist folder).

And these are the names of the files:

Okay that's really weird then. Are you sure that the album is split just after having done "sort by imported"? (And that there isn't a generator code applied to the playlist)
Yes, I'm sure. The generator code is the default one, I've never touched it. I tried to delete all the tags but that didn't change anything. I'll attach a short video to demonstrate what's happening.
https://user-images.githubusercontent.com/33501455/146586388-11932527-1d39-4174-9a44-c8a7e10f6555.mp4
That really shouldn't happen. The only case I can think of in which it might is if you historically imported the album with tracks missing in the folder to which you added at a later point? y/n?
Edit: Could happen if files were still being downloaded at the same time an import was originally done.
Edit: Basically sort by imported goes off the original import order
The only thing I can think of is that I've edited the tags of the tracks and albums' folders names. I then made a new folders and tags scan on Tauon. By experimenting a bit I found out that changing the folder name of the "My Favorite" album from "My Favorite" to something else fixes the problem. When I rescan folders and I "Sort by Imported" the album doesn't split. However, as soon as I rename it back to "My Favorite" and rescan again, the problem comes back.
EDIT: looks like this workaround is working on my main playlist, but if I try to replicate it in a new playlist with just the two albums, the problem persists even if I change the folder name. I'm confused.