Use lastActiveAgo to reorder member list

pull/21833/head
theworldbright 2016-06-29 16:57:59 +09:00
parent 1c280badde
commit 174caceabf
1 changed files with 2 additions and 0 deletions

View File

@ -445,6 +445,8 @@ module.exports = React.createClass({
// console.log("comparing ts: " + lastActiveTsA + " and " + lastActiveTsB);
var lastActiveTsA = userA && userA.lastActiveAgo ? userA.lastActiveAgo : 0;
var lastActiveTsB = userB && userB.lastActiveAgo ? userB.lastActiveAgo : 0;
return lastActiveTsB - lastActiveTsA;
},