An item sorter classifies incoming items and routes them to specific chests. The core trick in Bedrock is the comparator-based filter.
Fill a sorting hopper with 41 of a single item type (e.g., 41 cobblestone) as the filter lock, plus the item you want to sort placed 1 deep in slots using a filler.
Attach a comparator that reads the hopper. When 1 matching item enters, the hopper becomes full (5 stackable items) and the comparator outputs a signal.
That signal powers a sticky piston that retracts a block, unblocking a downstream hopper โ the item drops into the correct chest.
Repeat the module per item type, leaving one module empty to catch anything unsorted.
Test thoroughly; Bedrock comparator thresholds need careful tuning with the filler item count.