Skip to content

The Free Software Media System - Server Backend & API

add code suggestions

dkanada7270997e768a
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index 0819379cde..0eb396af47 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -2925,6 +2925,7 @@ namespace Emby.Server.Implementations.Data
prepend.Add(("SearchScore", SortOrder.Descending));
prepend.Add((ItemSortBy.SortName, SortOrder.Ascending));
}
+
if (hasSimilar)
{
prepend.Add(("SimilarityScore", SortOrder.Descending));