From 5272078ea3162688cffab9148f2f4e2b9fa54395 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 25 Mar 2019 23:32:08 -0700 Subject: [PATCH] Fixed: Sorting by age when releases are less than a day old Fixes #3012 --- frontend/src/Store/Actions/releaseActions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/Store/Actions/releaseActions.js b/frontend/src/Store/Actions/releaseActions.js index e26ba828d..7e4688c92 100644 --- a/frontend/src/Store/Actions/releaseActions.js +++ b/frontend/src/Store/Actions/releaseActions.js @@ -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;