Skip to content

Commit 27b0d5c

Browse files
authored
Fix Attribute Requirement Sorting (#8814)
1 parent e44f38f commit 27b0d5c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Modules/CalcPerform.lua

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,7 @@ function calcs.perform(env, skipEHP)
17601760
local breakdownAttr = omniRequirements and "Omni" or attr
17611761
if breakdown then
17621762
breakdown["Req"..attr] = {
1763+
source = "",
17631764
rowList = { },
17641765
colList = {
17651766
{ label = attr, key = "req" },
@@ -1813,17 +1814,6 @@ function calcs.perform(env, skipEHP)
18131814
end
18141815
end
18151816
end
1816-
if breakdown and breakdown["ReqOmni"] then
1817-
table.sort(breakdown["ReqOmni"].rowList, function(a, b)
1818-
if a.reqNum ~= b.reqNum then
1819-
return a.reqNum > b.reqNum
1820-
elseif a.source ~= b.source then
1821-
return a.source < b.source
1822-
else
1823-
return a.sourceName < b.sourceName
1824-
end
1825-
end)
1826-
end
18271817
end
18281818

18291819
-- Calculate number of active heralds and auras affecting self

0 commit comments

Comments
 (0)