Anonymous

Module:Items/ComparisonTables: Difference between revisions

From Melvor Idle
m
adjusted sorting one more time for DR table
(More attempts to adjust DR table formatting)
m (adjusted sorting one more time for DR table)
Line 567: Line 567:
local DRTable = {}
local DRTable = {}
table.sort(items, function(a, b) return a.name < b.name end)
for i, item in pairs(items) do
for i, item in pairs(items) do
Line 585: Line 586:
table.insert(resultPart, '\r\n|')
table.insert(resultPart, '\r\n|')
if SlotTables[SlotName] ~= nil then
if SlotTables[SlotName] ~= nil then
table.sort(SlotTables[SlotName], function(a, b) return a < b end)
table.insert(resultPart, table.concat(SlotTables[SlotName], '<br/>'))
table.insert(resultPart, table.concat(SlotTables[SlotName], '<br/>'))
end
end