summaryrefslogtreecommitdiff
path: root/script/utility.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/utility.lua')
-rw-r--r--script/utility.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/utility.lua b/script/utility.lua
index 04597a39..16c5e0c9 100644
--- a/script/utility.lua
+++ b/script/utility.lua
@@ -317,12 +317,12 @@ end
--- 排序后遍历
---@param t table
-function m.sortPairs(t)
+function m.sortPairs(t, sorter)
local keys = {}
for k in pairs(t) do
keys[#keys+1] = k
end
- tableSort(keys)
+ tableSort(keys, sorter)
local i = 0
return function ()
i = i + 1