Here I have a rough sketch of the idea, how to build a sorting machine: First the screw is gliding down a rail down to a stopper. Then a computer vision process is categorizing it and after the stopper opens, a pivotable chute lets the screw run down to the appropriate box.
