From a11795ff44d89dd12dab81b79c1bbb3e615f0ec8 Mon Sep 17 00:00:00 2001 From: Salikh Gurgenidze Date: Tue, 23 Dec 2025 22:29:03 +0400 Subject: [PATCH] fix: category order --- Sorting/SortEngine.lua | 4 ++-- UI/BagFrame.lua | 2 +- UI/BankFrame.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sorting/SortEngine.lua b/Sorting/SortEngine.lua index 516881f..2f892b2 100644 --- a/Sorting/SortEngine.lua +++ b/Sorting/SortEngine.lua @@ -57,15 +57,15 @@ local CATEGORY_ORDER = { ["Weapon"] = 4, -- Non-equippable weapons ["Armor"] = 5, -- Non-equippable armor ["Tools"] = 6, - ["Class Items"] = 7, ["Quiver"] = 8, ["Reagent"] = 9, ["Trade Goods"] = 10, ["Recipe"] = 11, ["Container"] = 12, - ["Quest"] = 13, ["Key"] = 14, ["Miscellaneous"] = 15, + ["Quest"] = 16, + ["Class Items"] = 17, } -- Subclass ordering for grouping related items diff --git a/UI/BagFrame.lua b/UI/BagFrame.lua index 25ba137..1b29895 100644 --- a/UI/BagFrame.lua +++ b/UI/BagFrame.lua @@ -403,7 +403,7 @@ function BagFrame:DisplayItemsByCategory(bagData, isOtherChar, charName) -- Group items by category local categories = {} local categoryList = { - "Weapon", "Armor", "Consumable", "Food", "Drink", "Class Items", "Quest", "Trade Goods", "Reagent", "Recipe", "Quiver", "Container", "Soul Bag", "Keyring", "Miscellaneous" + "Weapon", "Armor", "Consumable", "Food", "Drink", "Trade Goods", "Reagent", "Recipe", "Quiver", "Container", "Soul Bag", "Keyring", "Miscellaneous", "Quest", "Class Items" } for _, cat in ipairs(categoryList) do categories[cat] = {} end diff --git a/UI/BankFrame.lua b/UI/BankFrame.lua index bd17e7d..b7e6fd8 100644 --- a/UI/BankFrame.lua +++ b/UI/BankFrame.lua @@ -255,7 +255,7 @@ function BankFrame:DisplayItemsByCategory(bankData, isOtherChar, charName) -- Group items by category local categories = {} local categoryList = { - "Weapon", "Armor", "Consumable", "Food", "Drink", "Class Items", "Quest", "Trade Goods", "Reagent", "Recipe", "Quiver", "Container", "Soul Bag", "Miscellaneous" + "Weapon", "Armor", "Consumable", "Food", "Drink", "Trade Goods", "Reagent", "Recipe", "Quiver", "Container", "Soul Bag", "Miscellaneous", "Quest", "Class Items" } for _, cat in ipairs(categoryList) do categories[cat] = {} end