Module:Video game reviews/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
move subtitle out of renderTitleRow
Jackmcbarn (talk | contribs)
make sure the args stay in order
Line 45:
 
local function getActiveCustomAggregatorsAndReviewers(args)
local orderedKeys = {}
for k in pairs(args) do
table.insert(orderedKeys, k)
end
table.sort(orderedKeys)
local aggregators, reviewers = {}, {}
for k_,vk in pairsipairs(argsorderedKeys) do
if k:match('^agg(%d+)$') then
table.insert(aggregators, vargs[k])
elseif k:match('^rev(%d+)$') then
table.insert(reviewers, vargs[k])
end
end