diff options
Diffstat (limited to 'lib/app.js')
-rw-r--r-- | lib/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -182,8 +182,8 @@ var stateVals = { function comparePeers(a, b) { var aState = stateVals[a.state] || 0 var bState = stateVals[b.state] || 0 - return bState > aState ? 1 : bState < aState ? -1 : - b.stateChange - a.stateChange + return (bState - aState) + || (b.stateChange|0 - a.stateChange|0) } App.prototype.streamPeers = function (opts) { |