mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
sort donators
This commit is contained in:
parent
2b18c30949
commit
d622712f1f
@ -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…
x
Reference in New Issue
Block a user