mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-29 22:30:46 -04:00
Fix players above the current player coming out in wrong order in original and simulators leaderboard
This commit is contained in:
parent
e764277874
commit
a6ed7c9bff
2 changed files with 2 additions and 2 deletions
app/views/play/ladder
|
@ -309,8 +309,8 @@ class LeaderboardData extends CocoClass
|
|||
return [] unless @session?.get('totalScore')
|
||||
l = []
|
||||
above = @playersAbove.models
|
||||
above.reverse()
|
||||
l = l.concat(above)
|
||||
l.reverse()
|
||||
l.push @session
|
||||
l = l.concat(@playersBelow.models)
|
||||
if @myRank
|
||||
|
|
|
@ -116,8 +116,8 @@ class SimulatorsLeaderboardData extends CocoClass
|
|||
nearbySimulators: ->
|
||||
l = []
|
||||
above = @playersAbove.models
|
||||
above.reverse()
|
||||
l = l.concat(above)
|
||||
l.reverse()
|
||||
l.push @me
|
||||
l = l.concat(@playersBelow.models) if @playersBelow
|
||||
if @myRank
|
||||
|
|
Loading…
Add table
Reference in a new issue