Skip to content

Commit 831a561

Browse files
authored
Fix: A-Z order GetAllKv (#3643)
It's a very simple modification to make all the kvs return in alphabetical order to improve the way they are viewed.
1 parent 5ab2147 commit 831a561

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

data/scripts/talkactions/god/manage_kv.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ function getAllKV.onSay(player, words, param)
5151
return
5252
end
5353

54+
table.sort(keys, function(a, b)
55+
return tostring(a):lower() < tostring(b):lower()
56+
end)
57+
5458
for _, key in ipairs(keys) do
5559
local value = kv:get(key)
5660
if type(value) == "number" and value >= 0 then

0 commit comments

Comments
 (0)