Commit b94b37c6 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

AlbumTrack: Fix sorting when listing from genre

parent 59d598f1
......@@ -152,7 +152,10 @@ std::vector<AlbumTrackPtr> AlbumTrack::fromGenre( MediaLibraryPtr ml, unsigned i
req += "m.release_date";
break;
default:
req += "t.disc_number, t.track_number, med.filename";
if ( desc == true )
req += "t.disc_number DESC, t.track_number DESC, m.filename";
else
req += "t.disc_number, t.track_number, m.filename";
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment