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:
commit
e9a27f5151
@ -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'}
|
||||
|
Loading…
Reference in New Issue
Block a user