mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 09:56:03 +00:00
9a618e4709
Inline the bag sorter from Bagnon/lib/BagSort.lua — two-pointer stack consolidation, then a category-then-name sort with poor (gray) items placed back-to-front so they sit at the end of the last bag. Sort buttons land in the existing button row on both the bag (right) and bank (left) frames. Fixes a destructuring mismatch in the port: pfUI's compat/vanilla.lua shims GetItemInfo to the modern 10-field return signature (inserts nil for itemLevel between quality and minlevel), so itype/subtype sit at positions 6/7 — not 5/6 like the Bagnon original assumes against raw vanilla. Without the extra placeholder every item fell through to the "non-gear by quality" bucket.