I have made a simple storage system in Minecraft FTB Mindcrack 1.4.7 which will store the main items from my quarry into chests (iron, diamond, tin, copper, etc.) and has an overflow section for other things:
Overflow area:
The problem is that the items here go into a random chest and I can't control the flow using diamond pipes because there are to many types of items. Is there a way I can use pipes to control the items in a way they will enter the first chest containing the same item?