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
1 changed files with 3 additions and 0 deletions

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;