ingame/crafting/gamepad/enchanting_gamepad.lua:130 -- self.inventory:SetCustomSort(function(bagId, slotIndex)
local itemType = GetItemType(bagId, slotIndex)
if self.enchantingMode == ENCHANTING_MODE_CREATION then
if itemType == ITEMTYPE_ENCHANTING_RUNE_POTENCY then
return 0
elseif itemType == ITEMTYPE_ENCHANTING_RUNE_ESSENCE then
return 1
else
return 2
end
else
return itemType
end
end
)