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

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
Signed-off-by: Robin Dadswell <robin@dadswell.email>
pull/770/head
Qstick 4 years ago
parent 4d2781d128
commit fe85e18a62

@ -119,15 +119,15 @@ namespace Readarr.Api.V1.Queue
case "status": case "status":
return q => q.Status; return q => q.Status;
case "authors.sortName": case "authors.sortName":
return q => q.Author?.SortName; return q => q.Author?.SortName ?? string.Empty;
case "title": case "title":
return q => q.Title; return q => q.Title;
case "book": case "book":
return q => q.Book; return q => q.Book;
case "book.title": case "book.title":
return q => q.Book?.Title; return q => q.Book?.Title ?? string.Empty;
case "book.releaseDate": case "book.releaseDate":
return q => q.Book?.ReleaseDate; return q => q.Book?.ReleaseDate ?? DateTime.MinValue;
case "quality": case "quality":
return q => q.Quality; return q => q.Quality;
case "progress": case "progress":

Loading…
Cancel
Save