From 96315cfdba9184e9bc11030f1b78b03dffd7c3ca Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 9 Sep 2012 14:42:35 +0200 Subject: [PATCH] media library: 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 2e4d23a9..67d578da 100644 --- a/src/media_library.cpp +++ b/src/media_library.cpp @@ -940,7 +940,7 @@ void DisplayPrimaryTags(NC::Menu &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();