Module:TableTools: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
remove an unnecessary table.sort from compressSparseArray
(add missing ret table) |
(remove an unnecessary table.sort from compressSparseArray) |
||
Line 143: | Line 143: | ||
local ret = {} | local ret = {} | ||
local nums = p.getNumKeys(t) | local nums = p.getNumKeys(t) | ||
for _, num in ipairs(nums) do | for _, num in ipairs(nums) do | ||
ret[#ret + 1] = t[num] | ret[#ret + 1] = t[num] |