mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-08-03 11:29:22 -04:00
The bank had one Sort button and it sorted everything, which pools every item into the main slots — the wrong tool for a bag being kept as a category, since sorting it empties it into the bank proper. Add sortBankBag and computeBankBagSortSwaps, which order one bag's contents by the same rule as everywhere else (quality desc, then item id, then stack size) and address only that bag's container, and put a Sort button on each bag's header in the grouped view. The existing button becomes "Sort All" so the difference in scope is legible before it is clicked rather than after. Both feed the bank's existing swap queue, so the server sees one CMSG_SWAP_ITEM per frame either way.