Robots being able to sort objects based on color and other characteristics is nothing new. We have covered a bunch of interesting projects on it in the past. This video shows a Mitsubishi robot that uses 3 sensors (color, inductive, and distance) to sort 12 objects (wood, bronze, and metal).
The above video shows this sorting program in action.
[Source]