diff --git a/deluge/ui/web/js/Deluge.Torrents.js b/deluge/ui/web/js/Deluge.Torrents.js index a434cd3a0..781352cc9 100644 --- a/deluge/ui/web/js/Deluge.Torrents.js +++ b/deluge/ui/web/js/Deluge.Torrents.js @@ -71,6 +71,10 @@ Copyright: function trackerRenderer(value, p, r) { return String.format('
{0}
', value); } + + function etaSorter(eta) { + return eta * -1; + } /** * Ext.deluge.TorrentGrid Class @@ -100,7 +104,7 @@ Copyright: {name: 'total_peers', type: 'int'}, {name: 'downspeed', type: 'int'}, {name: 'upspeed', type: 'int'}, - {name: 'eta', type: 'int'}, + {name: 'eta', type: 'int', sortType: etaSorter}, {name: 'ratio', type: 'float'}, {name: 'avail', type: 'float'}, {name: 'added', type: 'int'},