This mod allows you to organize and stack your items automatically in chests, grouping same item types into stacks when they were scattered around
Sort Chest is a lightweight client-side mod for Minecraft Forge 1.20.1 that adds a handy "Sort" button to every chest interface. With one click, it organizes your chest's contents by automatically combining partial stacks of the same item and grouping them together.

Conversation