Sort your items using the Automatic Chest Sorter.
The Atlas chest sorting system works using storage minecarts and is able to move entire inventories instantly.
The storage cart can be put into one of three modes by having the cart pass over a powered activator rail with a wool block under it.
The color of the wool will change the mode of the minecart.