View Single Post
11-02-18, 08:54 PM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
Assuming you wans list as a table in AddOnList otherwise, remove the AddOnList references.
Lua Code:
  1. local AddOnList = { list={} }
  2. for i = 1, GetNumAddOns() do
  3.     local folderName, title = GetAddOnInfo(i)
  4.     if not exempt[folderName] then
  5.         tinsert(AddOnList.list, {name=title} )
  6.     end
  7. end
  8. table.sort(AddOnList.list, function(a, b) -- sort alphabetically
  9.     return a.name > b.name
  10. end)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 11-02-18 at 08:59 PM.
  Reply With Quote