From 8080b79b681dacfc4b561dfb5915746565407c53 Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Fri, 17 Jun 2022 23:40:50 +0000 Subject: [PATCH] Prototype: fix table.sort failing to compare number keys with string keys --- Install_00/Prototype.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Install_00/Prototype.lua b/Install_00/Prototype.lua index 46a7f76..def2ed9 100644 --- a/Install_00/Prototype.lua +++ b/Install_00/Prototype.lua @@ -25,7 +25,7 @@ function Prototype:__tostring() -- load and sort table keys local tkeys={} for k in pairs(self) do table.insert(tkeys, k) end - table.sort(tkeys) + table.sort(tkeys, function(a,b) return tostring(a)