Quantcast

* options tabs should now be alphabetically ordered

James Whitehead II [04-10-07 - 01:24]
* options tabs should now be alphabetically ordered
Filename
PerfectRaid_Options.lua
diff --git a/PerfectRaid_Options.lua b/PerfectRaid_Options.lua
index 617eb50..dce0d43 100644
--- a/PerfectRaid_Options.lua
+++ b/PerfectRaid_Options.lua
@@ -75,7 +75,16 @@ function Options:CreateOptions()

 	PROptionsTitle:SetText(L["PerfectRaid Options"])

+	local sortTbl = {}
 	for name,module in PerfectRaid:IterateModules() do
+		table.insert(sortTbl, name)
+		sortTbl[name] = module
+	end
+
+	table.sort(sortTbl)
+
+	for idx,name in ipairs(sortTbl) do
+		local module = sortTbl[name]
 		if module ~= self and type(module.CreateOptions) == "function" then
 			module:CreateOptions(self)
 		end