media library: really fix sorting by disc

This commit is contained in:
Andrzej Rybczak
2012-09-09 19:57:11 +02:00
parent 37b7650d71
commit 463b857f4e

View File

@@ -942,7 +942,7 @@ bool SortSongsByTrack(const MPD::Song &a, const MPD::Song &b)
{
int cmp = a.getDisc().compare(b.getDisc());
if (cmp != 0)
return cmp;
return cmp < 0;
return a.getTrack() < b.getTrack();
}