media library: really fix sorting by disc

master
Andrzej Rybczak 14 years ago
parent 37b7650d71
commit 463b857f4e
  1. 2
      src/media_library.cpp

@ -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();
} }

Loading…
Cancel
Save