From 463b857f4e611f313cea65a7c54179ac53ca96ca Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 9 Sep 2012 19:57:11 +0200 Subject: [PATCH] media library: really fix sorting by disc --- src/media_library.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media_library.cpp b/src/media_library.cpp index 67d578da..a32fd7fd 100644 --- a/src/media_library.cpp +++ b/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()); if (cmp != 0) - return cmp; + return cmp < 0; return a.getTrack() < b.getTrack(); }