fix: typo in view.lua (#2103)

This commit is contained in:
mamekoro
2024-12-20 12:10:40 +09:00
committed by GitHub
parent 98e8b9d593
commit 8c447245e1

View File

@@ -106,9 +106,9 @@ view.open = function(self, ctx, sources)
end end
-- sort. -- sort.
local comparetors = config.get().sorting.comparators local comparators = config.get().sorting.comparators
table.sort(group_entries, function(e1, e2) table.sort(group_entries, function(e1, e2)
for _, fn in ipairs(comparetors) do for _, fn in ipairs(comparators) do
local diff = fn(e1, e2) local diff = fn(e1, e2)
if diff ~= nil then if diff ~= nil then
return diff return diff