Use lastActiveAgo to reorder member list
This commit is contained in:
parent
1c280badde
commit
174caceabf
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue