Switch ordering of Idle users

pull/21833/head
theworldbright 2016-06-29 17:08:17 +09:00
parent 72a1d5a0de
commit 69cb0a8f1c
1 changed files with 3 additions and 3 deletions

View File

@ -423,9 +423,9 @@ module.exports = React.createClass({
if (userA.currentlyActive && !userB.currentlyActive) return -1;
if (!userA.currentlyActive && userB.currentlyActive) return 1;
var lastActiveTsA = userA && userA.lastActiveAgo ? userA.lastActiveAgo : 0;
var lastActiveTsB = userB && userB.lastActiveAgo ? userB.lastActiveAgo : 0;
return lastActiveTsB - lastActiveTsA;
var lastActiveTsA = userA && userA.lastActiveAgo ? userA.lastActiveAgo : 9999999999;
var lastActiveTsB = userB && userB.lastActiveAgo ? userB.lastActiveAgo : 9999999999;
return lastActiveTsA - lastActiveTsB;
},
onSearchQueryChanged: function(input) {