mirror of
https://github.com/rxi/lovebird.git
synced 2024-11-15 22:54:21 +00:00
Changed env.json's sort to handle tables with mixed key types
This commit is contained in:
parent
f7578fe07e
commit
866cff673d
@ -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]
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user