From 866cff673dbf5a597038f43131a68116d0a7ff04 Mon Sep 17 00:00:00 2001 From: rxi Date: Mon, 14 Apr 2014 00:15:48 +0100 Subject: [PATCH] Changed env.json's sort to handle tables with mixed key types --- lovebird.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lovebird.lua b/lovebird.lua index c610056..b946c4f 100644 --- a/lovebird.lua +++ b/lovebird.lua @@ -342,7 +342,7 @@ lovebird.pages["env.json"] = [[ table.insert(keys, k) end end - table.sort(keys) + table.sort(keys, function(a, b) return tostring(a) < tostring(b) end) for _, k in pairs(keys) do local v = t[k] ?>