fix(ui): sort plugins case insensitive

This commit is contained in:
Folke Lemaitre 2023-09-28 12:26:21 +02:00
parent 7ca3bdb566
commit 4f27fc33c4
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 0 deletions

View File

@ -241,6 +241,9 @@ function M:section(section)
end, self.plugins)
local count = #section_plugins
table.sort(section_plugins, function(a, b)
return a.name:lower() < b.name:lower()
end)
if count > 0 then
self:append(section.title, "LazyH2"):append(" (" .. count .. ")", "LazyComment"):nl()
for _, plugin in ipairs(section_plugins) do