Merge pull request #43 from Luminarys/master

Fix up/down rate comparators
This commit is contained in:
Drew DeVault 2018-03-13 22:46:20 -04:00 committed by GitHub
commit d415c63734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,8 +73,8 @@ const Torrent = connect((state, props) => {
const comparators = {
"name": (a, b) => a.name.localeCompare(b.name),
"up": (a, b) => a.up - b.up,
"down": (a, b) => a.down - b.down,
"up": (a, b) => a.rate_up - b.rate_up,
"down": (a, b) => a.rate_down - b.rate_down,
"ul": (a, b) => a.transferred_up - b.transferred_up,
"dl": (a, b) => a.transferred_down - b.transferred_down,
"ratio": (a, b) => {