Lua code cleanup

This commit is contained in:
Luca Deri 2016-12-10 08:45:13 +01:00
parent c83bcdb887
commit 6f9a7d0238
3 changed files with 13 additions and 32 deletions

View file

@ -383,6 +383,8 @@ end
function pairsByKeys(t, f)
local a = {}
-- io.write(debug.traceback().."\n")
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable