media library: fix sorting by disc

This commit is contained in:
Andrzej Rybczak
2012-09-09 14:42:35 +02:00
parent 4961e6d6ee
commit 96315cfdba

View File

@@ -940,7 +940,7 @@ void DisplayPrimaryTags(NC::Menu<std::string> &menu)
bool SortSongsByTrack(const MPD::Song &a, const MPD::Song &b)
{
int cmp = a.getDisc().compare(a.getDisc());
int cmp = a.getDisc().compare(b.getDisc());
if (cmp != 0)
return cmp;
return a.getTrack() < b.getTrack();