aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteItemRepository.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2021-04-28 18:33:30 -0600
committercrobibero <cody@robibe.ro>2021-04-28 18:33:30 -0600
commitd27ca993a5670d69bb40dd9879137c56eefe00e8 (patch)
treec449a5971856ae5aeb36d05c5b0fb89ed6def56f /Emby.Server.Implementations/Data/SqliteItemRepository.cs
parentadfc03ac9dea134c57daefe8ca89fbfe089b9739 (diff)
Add ability to sort on Genre, MusicGenre, Artist
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteItemRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteItemRepository.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index 694805ebe..a9815ae36 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -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);
}