1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00

Merge pull request #767 from grilledham/player_list/sort_donators

sort donators
This commit is contained in:
Matthew 2019-02-17 11:54:12 -05:00 committed by GitHub
commit e9a27f5151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,7 +210,11 @@ local column_builders = {
}
end,
sort = function(a, b)
return a.rank < b.rank
local a_rank, b_rank = a.rank, b.rank
if a_rank == b_rank then
return b.is_donator
end
return a_rank < b_rank
end,
draw_heading = function(parent)
local label = parent.add {type = 'label', name = rank_heading_name, caption = 'Rank'}