From c1668aae6bf88fe87014a7bb60a368faebaff0bb Mon Sep 17 00:00:00 2001 From: Brandon Reynolds Date: Sun, 5 Mar 2023 00:07:35 -0500 Subject: [PATCH] Make the Deaths window use the sort order from config --- classes/class_utility.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/classes/class_utility.lua b/classes/class_utility.lua index 53957537..ddc664e7 100644 --- a/classes/class_utility.lua +++ b/classes/class_utility.lua @@ -752,10 +752,9 @@ function atributo_misc:RefreshWindow(instance, combatObject, bIsForceRefresh, bI instance:RefreshScrollBar(total) local whichRowLine = 1 - local bIsReverse = false --debug (default false) - --if this is reverse, need to invert the values in the table which holds the deaths in the combat - if (bIsReverse) then + --if sort direction is descending, need to invert the values in the table which holds the deaths in the combat + if (instance.bars_sort_direction == 1) then local tempTable = {} for i = #allDeathsInTheCombat, 1, -1 do tempTable[#tempTable+1] = allDeathsInTheCombat[i]