Commit 0d6bbeaf authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Album: Fix ordering

parent 25fe649d
......@@ -149,10 +149,13 @@ std::string Album::orderBy( medialibrary::SortingCriteria sort, bool desc ) cons
req += "med.duration";
break;
case medialibrary::SortingCriteria::ReleaseDate:
req += "med.release_date";
req += "med.release_date";
break;
default:
req += "att.disc_number, att.track_number, med.filename";
if ( desc == true )
req += "att.disc_number DESC, att.track_number DESC, med.filename";
else
req += "att.disc_number, att.track_number, med.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