From 54b7520afd45dddcdf1a7d801153241524f4cf74 Mon Sep 17 00:00:00 2001 From: "vjekoslav.krenek@gmail.com" <313787825+svart2521@users.noreply.github.com> Date: Sun, 13 Sep 2026 16:28:32 +0200 Subject: [PATCH] Fix: Custom Order buffs render in the wrong order on raid frames Bug: Issue: AuraContainerSortMethod.Default reordered Custom Order's per-spell engine groups across the whole container, ignoring each group's own layoutIndex, even though the saved spellOrder arrangement itself was correct end to end. Fix: Segmented Custom Order groups now use AuraContainerSortMethod.AuraInstanceIDOnly instead of Default, which respects layoutIndex; confirmed live that the arranged order now renders correctly. --- .../EUI_RaidFrames_AuraContainers.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/EllesmereUIRaidFrames/EUI_RaidFrames_AuraContainers.lua b/EllesmereUIRaidFrames/EUI_RaidFrames_AuraContainers.lua index 986f2ba98..868d7175d 100644 --- a/EllesmereUIRaidFrames/EUI_RaidFrames_AuraContainers.lua +++ b/EllesmereUIRaidFrames/EUI_RaidFrames_AuraContainers.lua @@ -2459,10 +2459,18 @@ local function BmAcquireChain(button, d, health, ch, iscale, counters) if ownPat[j] == "o" then filter = { "HELPFUL", "PLAYER" } else filter = { "HELPFUL" } end for _ = 1, (segsBy[j] and #segsBy[j] or 1) do g = g + 1 + -- Default's sortMethod ignores layoutIndex across segmented + -- groups (confirmed live); AuraInstanceIDOnly respects it. + local sm + if segsBy[j] and AuraContainerSortMethod then + sm = AuraContainerSortMethod.AuraInstanceIDOnly or AuraContainerSortMethod.Default + else + sm = AuraContainerSortMethod and AuraContainerSortMethod.Default or nil + end AK.AddGroupToContainer(cc, { key = (g == 1) and "chain" or ("chain" .. g), filter = filter, maxFrameCount = 0, - sortMethod = AuraContainerSortMethod and AuraContainerSortMethod.Default or nil, + sortMethod = sm, style = styleKeys[j], extraInit = ChainExtraInit(), layout = { layoutIndex = g }, })