1. A component sorting mechanism, comprising:a vibrating plate slidably mounted on a base plate;
a feeding tray having a plurality of grooves in an inner bottom surface thereof, the feeding tray mounted on the vibrating plate;
a first driving device connected to the feeding tray, the first driving device driving the feeding tray to swing within a predetermined angle range; and
a second driving device connected to the vibrating plate and mounted on the base plate, the second driving device vibrating the vibrating plate.