Changed env.json's sort to handle tables with mixed key types

This commit is contained in:
rxi 2014-04-14 00:15:48 +01:00
parent f7578fe07e
commit 866cff673d

View File

@ -342,7 +342,7 @@ lovebird.pages["env.json"] = [[
table.insert(keys, k) table.insert(keys, k)
end end
end end
table.sort(keys) table.sort(keys, function(a, b) return tostring(a) < tostring(b) end)
for _, k in pairs(keys) do for _, k in pairs(keys) do
local v = t[k] local v = t[k]
?> ?>