mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Sorted the friend sessions a bit.
This commit is contained in:
parent
781b33092c
commit
462d365ce0
1 changed files with 4 additions and 1 deletions
|
@ -155,7 +155,10 @@ module.exports = class LadderTabView extends CocoView
|
|||
|
||||
consolidateFriends: ->
|
||||
allFriendSessions = (@facebookFriendSessions or []).concat(@gplusFriendSessions or [])
|
||||
_.uniq allFriendSessions, false, (session) -> session._id
|
||||
sessions = _.uniq allFriendSessions, false, (session) -> session._id
|
||||
sessions = _.sortBy sessions, 'totalScore'
|
||||
sessions.reverse()
|
||||
sessions
|
||||
|
||||
class LeaderboardData
|
||||
constructor: (@level, @team, @session) ->
|
||||
|
|
Loading…
Reference in a new issue