Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,10 @@ function ItemsTabClass:UpdateAffixControl(control, item, type, outputTable, outp
return modA.statOrder[i] < modB.statOrder[i]
end
end
return modA.level > modB.level
if modA.level ~= modB.level then
return modA.level < modB.level
end
return a < b
end)
control.selIndex = 1
control.list = { "None" }
Expand Down Expand Up @@ -1796,7 +1799,7 @@ function ItemsTabClass:UpdateAffixControl(control, item, type, outputTable, outp
if selAffix == modId then
control.selIndex = #control.list
end
t_insert(lastSeries.modList, 1, modId)
t_insert(lastSeries.modList, modId)
if #lastSeries.modList == 2 then
lastSeries.label = lastSeries.label:gsub("%(%-?[%d%.]+%-%-?[%d%.]+%)","#"):gsub("%-?%d+%.?%d*","#")
lastSeries.haveRange = true
Expand Down