As reported on The Verge.
By Aaron Souppouris

Lego engineer Akiyuki has created a machine that can sort Lego pieces automatically. Akiyuki, whose “Great Ball Contraption” was a big hit on YouTube last year, managed to power the complex machine using a single motor. The “Lego Axle Sorter AS-L40A” is able to pick up a pile containing 10 different types of Lego from a bucket and sort them into separate containers. It may not be as complicated as Akiyuki’s previous effort — which is painstakingly catalogued on his YouTube page — but it’s just as ingenious.