1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-05 15:05:57 +02:00

Merge pull request #797 from grilledham/player_list/fix_donator_sort_function

fix player_list sort by rank
This commit is contained in:
grilledham 2019-02-23 14:47:00 +00:00 committed by GitHub
commit 91eaf60af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,7 +212,7 @@ local column_builders = {
sort = function(a, b) sort = function(a, b)
local a_rank, b_rank = a.rank, b.rank local a_rank, b_rank = a.rank, b.rank
if a_rank == b_rank then if a_rank == b_rank then
return b.is_donator return b.is_donator and not a.is_donator
end end
return a_rank < b_rank return a_rank < b_rank
end, end,