gui: sort profile list

This commit is contained in:
Johnny Arcitec
2025-08-22 20:24:17 +02:00
committed by GitHub
parent 7905647abe
commit bb7e5b214b
+1
View File
@@ -1405,6 +1405,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(function() return end, T["Select profile"], C.global, "profile", "dropdown", function()
local values = {}
for name, config in pairs(pfUI_profiles) do table.insert(values, name) end
table.sort(values)
return values
end, false, "Profile")