16,985
edits
(getMarkTable: Amend sort to match in-game order) |
(getTabletTable: Apply same sort order as getMarkTable) |
||
Line 58: | Line 58: | ||
local Familiars = p.getFamiliars() | local Familiars = p.getFamiliars() | ||
table.sort(Familiars, function(a, b) return a.summoningLevel < b.summoningLevel end) | table.sort(Familiars, function(a, b) | ||
if a.summoningLevel == b.summoningLevel then | |||
return a.summoningID < b.summoningID | |||
else | |||
return a.summoningLevel < b.summoningLevel | |||
end | |||
end) | |||
local rowArray = {} | local rowArray = {} |