mirror of
https://github.com/TangentFoxy/lovebird.git
synced 2025-07-28 11:02:19 +00:00
Changed env.json's sort to handle tables with mixed key types
This commit is contained in:
@@ -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]
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user