media library: really fix sorting by disc
This commit is contained in:
@@ -942,7 +942,7 @@ bool SortSongsByTrack(const MPD::Song &a, const MPD::Song &b)
|
|||||||
{
|
{
|
||||||
int cmp = a.getDisc().compare(b.getDisc());
|
int cmp = a.getDisc().compare(b.getDisc());
|
||||||
if (cmp != 0)
|
if (cmp != 0)
|
||||||
return cmp;
|
return cmp < 0;
|
||||||
return a.getTrack() < b.getTrack();
|
return a.getTrack() < b.getTrack();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user