mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-23 13:57:06 -04:00
Fixed: Sorting by age when releases are less than a day old
Fixes #3012
This commit is contained in:
parent
b6257400ec
commit
5272078ea3
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue