Ensure movies without year are first in descending order

This commit is contained in:
Bogdan 2023-07-29 18:05:46 +03:00
parent 788782d009
commit 47360d4d38
1 changed files with 4 additions and 0 deletions

View File

@ -236,6 +236,10 @@ export const sortPredicates = {
return padNumber(result.toString(), 2) + qualityName;
},
year: function(item) {
return item.year || undefined;
},
inCinemas: function(item) {
return item.inCinemas || '';
},