Inventory category contents changing

How can I set up the contents of each category separately?

Example:

[ Weapons ] Armor Items

......... show stats for weapon

......... show stats for weapon

........

.........

.......

------------------------------------------------

Weapons [ Armor ] Items

......... show stats for armor

......... show stats for armor

........

.........

.......

Original thread: https://forums.rpgmakerweb.com/threads/inventory-category-contents-changing.151713/