1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-23 00:07:07 +00:00

Fixed: Sorting by age when releases are less than a day old

Fixes #3012
This commit is contained in:
Mark McDowall 2019-03-25 23:32:08 -07:00
parent b6257400ec
commit 5272078ea3

View file

@ -27,6 +27,9 @@ export const defaultState = {
sortKey: 'releaseWeight',
sortDirection: sortDirections.ASCENDING,
sortPredicates: {
age: function(item, direction) {
return item.ageMinutes;
},
peers: function(item, direction) {
const seeders = item.seeders || 0;
const leechers = item.leechers || 0;