Fix table sorting function

The ranking order was inverted
master
upsilon 2017-02-21 18:16:55 +01:00
parent 09da70a421
commit 0dd02dc780
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ function pvpplus.stop_tournament()
score = tournament.sent_damages[name] - tournament.received_damages[name] + tournament.kills[name] * 20
})
end
table.sort(rating, function(a, b) return a.score < b.score end)
table.sort(rating, function(a, b) return a.score > b.score end)
-- Print it
-- It won't look good if the font used in the chat and the formspec textarea isn't monospace.