From 55520e5b030c8f585790677068a42d37133a54f8 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 10 Apr 2007 01:24:41 +0000 Subject: [PATCH] * options tabs should now be alphabetically ordered --- PerfectRaid_Options.lua | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 1.7.9.5