qt: Wrong sort order of tracks w.r.t. Artist name
While sorting the tracks according to Artist name in the Tracks tab, it gives a wrong alphabetical ordering of the sections.
This probably happens because for the tracks whose artist is unknown and is tagged as "Unknown Artist"
, the code is using ""
(null string) for comparison rather than the string "Unknown Artist"
.
For example:
The symbol
▲
beside the Artist heading represents that the sortOrder is currently Qt.DescendingOrder (see reference). And so, the tracks with the Artist name "Unknown Artist" should appear on the top, as the descending order would then be U, J, D. But here it shows J, D, U which is a wrong ordering.