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

Album: Add sort by duration

Refs #6
parent fff3e3bc
......@@ -178,6 +178,11 @@ std::string Album::orderBy( medialibrary::SortingCriteria sort, bool desc )
else
req += "release_year, title";
break;
case medialibrary::SortingCriteria::Duration:
req += "duration";
if ( desc == true )
req += " DESC";
break;
default:
req += "title";
if ( desc == true )
......
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