From fe85e18a626add815a36cf9f286dc5ace2083b53 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 13 Dec 2020 00:23:26 -0500 Subject: [PATCH] Fixed: Sorting of queue by artist title when unknown items are included Co-Authored-By: Mark McDowall Signed-off-by: Robin Dadswell --- src/Readarr.Api.V1/Queue/QueueModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Readarr.Api.V1/Queue/QueueModule.cs b/src/Readarr.Api.V1/Queue/QueueModule.cs index 2f36666ea..bfefc0151 100644 --- a/src/Readarr.Api.V1/Queue/QueueModule.cs +++ b/src/Readarr.Api.V1/Queue/QueueModule.cs @@ -119,15 +119,15 @@ namespace Readarr.Api.V1.Queue case "status": return q => q.Status; case "authors.sortName": - return q => q.Author?.SortName; + return q => q.Author?.SortName ?? string.Empty; case "title": return q => q.Title; case "book": return q => q.Book; case "book.title": - return q => q.Book?.Title; + return q => q.Book?.Title ?? string.Empty; case "book.releaseDate": - return q => q.Book?.ReleaseDate; + return q => q.Book?.ReleaseDate ?? DateTime.MinValue; case "quality": return q => q.Quality; case "progress":