A sorter lets you dump everything into one chest and have it sorted for you. Each sorting slice handles one item type.
You will need
- Hoppers3 per slice
- Redstone comparator1 per slice
- Redstone torch1 per slice
- Repeater1 per slice
- Chests1 per slice
Tip
Fill the filter hopper with the item you want to sort: 18 in the first slot and one in each other slot.