fix: improved sorting

This commit is contained in:
Salikh Gurgenidze
2025-11-20 15:15:29 +04:00
parent 97e1cb502a
commit fdf25546bf
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
## Title: Guda ## Title: Guda
## Notes: All-in-one bag and bank addon for Turtle WoW ## Notes: All-in-one bag and bank addon for Turtle WoW
## Author: Vati ## Author: Vati
## Version: 1.1.0 ## Version: 1.1.1
## SavedVariables: Guda_DB ## SavedVariables: Guda_DB
## SavedVariablesPerCharacter: Guda_CharDB ## SavedVariablesPerCharacter: Guda_CharDB
+5
View File
@@ -144,6 +144,11 @@ local function GetSubclassOrder(subclass, itemName)
end end
-- Check other categories -- Check other categories
-- Group metals, stones, ores, bars together with gems
if string.find(subLower, "metal") or string.find(subLower, "stone") or
string.find(nameLower, "ore") or string.find(nameLower, "bar") or string.find(nameLower, "stone") then
return SUBCLASS_ORDER.gems -- Group ores/bars/stones with gems
end
if string.find(subLower, "cloth") then return SUBCLASS_ORDER.cloth end if string.find(subLower, "cloth") then return SUBCLASS_ORDER.cloth end
if string.find(subLower, "leather") then return SUBCLASS_ORDER.leather end if string.find(subLower, "leather") then return SUBCLASS_ORDER.leather end
if string.find(subLower, "herb") then return SUBCLASS_ORDER.herbs end if string.find(subLower, "herb") then return SUBCLASS_ORDER.herbs end