1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

sort donators

This commit is contained in:
grilledham 2019-02-17 15:56:18 +00:00
parent 2b18c30949
commit d622712f1f

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'}