Difference between revisions of "Module:TableTools"

Jump to navigation Jump to search
18 bytes removed ,  15:17, 15 December 2013
remove an unnecessary table.sort from compressSparseArray
>Mr. Stradivarius
(add missing ret table)
>Mr. Stradivarius
(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)
table.sort(nums)
for _, num in ipairs(nums) do
for _, num in ipairs(nums) do
ret[#ret + 1] = t[num]
ret[#ret + 1] = t[num]
Anonymous user

Navigation menu