Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kakysha committed Oct 24, 2019
1 parent d170ef6 commit 1367770
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ end
function GUI:BuildStandingsTable()
local t = { }
for playerName, player in pairs(HonorSpy.db.factionrealm.currentStandings) do
table.insert(t, {playerName, player.class, player.thisWeekHonor, player.lastWeekHonor, player.standing, player.RP, player.rank, player.last_checked})
table.insert(t, {playerName, player.class, player.thisWeekHonor, player.lastWeekHonor, player.standing, player.RP, player.rank, player.last_checked})
end

local sort_column = 3; -- ThisWeekHonor
if (HonorSpy.db.factionrealm.sort == L["Rank"]) then sort_column = 6; end
table.sort(t, function(a,b)
return a[sort_column] > b[sort_column]
return a[sort_column] > b[sort_column]
end)

return t
end

Expand Down

0 comments on commit 1367770

Please sign in to comment.