Add ability to sort on Genre, MusicGenre, Artist

This commit is contained in:
crobibero
2021-04-28 18:33:30 -06:00
parent adfc03ac9d
commit d27ca993a5
4 changed files with 22 additions and 4 deletions

View File

@@ -5469,7 +5469,9 @@ AND Type = @InternalPersonType)");
commandText += whereText + " group by PresentationUniqueKey";
if (query.SimilarTo != null || !string.IsNullOrEmpty(query.SearchTerm))
if (query.OrderBy.Count != 0
|| query.SimilarTo != null
|| !string.IsNullOrEmpty(query.SearchTerm))
{
commandText += GetOrderByText(query);
}