In a mass spectrometer, the ions are sorted out in which of the following ways?
A. By accelerating them through electric field
B. By accelerating them through magnetic field
C. By accelerating them through electric and magnetic field
D. By applying a high voltage​