Fixed: Sorting of queue by series title when unknown items are included

pull/3819/head
Mark McDowall 5 years ago
parent 1e98002b8f
commit f3a14b6081

@ -145,15 +145,15 @@ namespace Sonarr.Api.V3.Queue
case "status": case "status":
return q => q.Status; return q => q.Status;
case "series.sortTitle": case "series.sortTitle":
return q => q.Series?.SortTitle; return q => q.Series?.SortTitle ?? string.Empty;
case "title": case "title":
return q => q.Title; return q => q.Title;
case "episode": case "episode":
return q => q.Episode; return q => q.Episode;
case "episode.airDateUtc": case "episode.airDateUtc":
return q => q.Episode?.AirDateUtc; return q => q.Episode?.AirDateUtc ?? DateTime.MinValue;
case "episode.title": case "episode.title":
return q => q.Episode?.Title; return q => q.Episode?.Title ?? string.Empty;
case "language": case "language":
return q => q.Language; return q => q.Language;
case "quality": case "quality":

Loading…
Cancel
Save