The folks at BrickIt were commissioned by a company called Dynaway to build this miniature, but impressive, Lego sorting factory to demonstrate the firm's manufacturing execution system. And lucky for us, they created this video of it in action.
The plant was created with around 37,500 pieces of Lego, including 28 motors, 22 touch, colour, and ultrasonic sensors and seven Mindstorm NXT controller bricks. They all work together, along with conveyor belts and tumbling drums, to effectively sort 2x4 and 1x2 bricks by size and colour.
When a container of sorted bricks gets full, a robot will even automatically remove it, replacing it with an empty container so the plant can continue working. I'm particularly impressed that BrickIt engineered the whole thing so that it could easily be packed into a flight case, allowing Dynaway to easily bring it on the road with them. [BrickIt via The NXT Step]