Merge pull request #43 from Luminarys/master
Fix up/down rate comparators
This commit is contained in:
commit
d415c63734
|
@ -73,8 +73,8 @@ const Torrent = connect((state, props) => {
|
||||||
|
|
||||||
const comparators = {
|
const comparators = {
|
||||||
"name": (a, b) => a.name.localeCompare(b.name),
|
"name": (a, b) => a.name.localeCompare(b.name),
|
||||||
"up": (a, b) => a.up - b.up,
|
"up": (a, b) => a.rate_up - b.rate_up,
|
||||||
"down": (a, b) => a.down - b.down,
|
"down": (a, b) => a.rate_down - b.rate_down,
|
||||||
"ul": (a, b) => a.transferred_up - b.transferred_up,
|
"ul": (a, b) => a.transferred_up - b.transferred_up,
|
||||||
"dl": (a, b) => a.transferred_down - b.transferred_down,
|
"dl": (a, b) => a.transferred_down - b.transferred_down,
|
||||||
"ratio": (a, b) => {
|
"ratio": (a, b) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user