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

Album: Add sort by number of tracks

parent ce39d70d
......@@ -70,6 +70,7 @@ enum class SortingCriteria
PlayCount,
Album,
Filename,
TrackNumber,
};
enum class InitializeResult
......
......@@ -232,6 +232,11 @@ std::string Album::orderBy( SortingCriteria sort, bool desc )
if ( desc == true )
req += " DESC";
break;
case SortingCriteria::TrackNumber:
req += "nb_tracks";
if ( desc == false )
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