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

This commit is contained in:
Mark McDowall 2020-06-09 13:16:09 -07:00
parent 1e98002b8f
commit f3a14b6081
1 changed files with 3 additions and 3 deletions

View File

@ -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":