Commit f5e9f3fd authored by Aymeric Guillien's avatar Aymeric Guillien
Browse files

Medialibrary: Add SortingCriteria::LastPlaybackDate on Media

parent 3c1106fc
......@@ -1211,6 +1211,9 @@ std::string Media::sortRequest( const QueryParameters* params )
case SortingCriteria::Artist:
req += "art.name";
break;
case SortingCriteria::LastPlaybackDate:
req += "m.last_played_date";
break;
case SortingCriteria::TrackId:
if ( desc == true )
req += "alb.title, m.track_number DESC, m.disc_number";
......
Supports Markdown
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