Use lastActiveAgo to reorder member list

This commit is contained in:
theworldbright 2016-06-29 16:57:59 +09:00
parent 1c280badde
commit 174caceabf

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;
},