aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteItemRepository.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-05-11 12:41:25 +0000
committerGitHub <noreply@github.com>2021-05-11 12:41:25 +0000
commit50f617357bb0ab4f974d054ec494cb59acd64d68 (patch)
treef3375a77f9fe76db69c0cf07a61149d69310436b /Emby.Server.Implementations/Data/SqliteItemRepository.cs
parent138c564e8f5fccaa5de9abdaeda9503979ff9025 (diff)
parent69e91c33d8af168d12ba02c1a3e4762131ded952 (diff)
Merge pull request #5929 from crobibero/sort
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 72c9d82ad..835eb0692 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -5463,7 +5463,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);
}