From d61a6852b2adcfe95fad93a38be58dc249149e77 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 --- src/Lidarr.Api.V1/Queue/QueueModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Lidarr.Api.V1/Queue/QueueModule.cs b/src/Lidarr.Api.V1/Queue/QueueModule.cs index c055731b0..843b3cd2f 100644 --- a/src/Lidarr.Api.V1/Queue/QueueModule.cs +++ b/src/Lidarr.Api.V1/Queue/QueueModule.cs @@ -119,15 +119,15 @@ namespace Lidarr.Api.V1.Queue case "status": return q => q.Status; case "artists.sortName": - return q => q.Artist?.SortName; + return q => q.Artist?.SortName ?? string.Empty; case "title": return q => q.Title; case "album": return q => q.Album; case "albums.title": - return q => q.Album?.Title; + return q => q.Album?.Title ?? string.Empty; case "album.releaseDate": - return q => q.Album?.ReleaseDate; + return q => q.Album?.ReleaseDate ?? DateTime.MinValue; case "quality": return q => q.Quality; case "progress":