Sorting machine (100) that separates the fruits from foreign elements, comprising: - a rigid support frame (1), - a mobile frame (2) connected to the fixed frame (1) and comprising an inlet mouth (24) , an outlet (25) and a longitudinal axis (AA); - connection means between the fixed frame (1) and the mobile frame (2); - drive means (3) of the mobile frame (2); wherein the mobile frame (2) has a rectangular section and comprises an upper wall (21), a lower wall (22) and a pair of sides (20) connecting the upper wall (21) to the lower wall (22) ; the mobile frame (2) defines a space (23) in which the relevant fruits and foreign elements are inserted through the inlet mouth (24); the bottom wall (22) comprises a plurality of holes (F) with suitable dimensions to allow the passage of the fruits; the mobile frame (2) oscillates around a horizontal rotation axis (X-X) arranged transversely to the longitudinal axis (A-A), and the connection means (5) comprise a horizontal connecting pivot pin (P); the pivot pin (P) connects the oscillating mobile frame (2) to the fixed support frame (1); the pivot pin (P) has a longitudinal axis that coincides with the horizontal rotation axis (X-X) of the movable frame; characterized in that the pivot pin (P) is disposed in the inlet (24) of the mobile frame (2), and the upper wall (21) of the mobile frame (2) comprises a plurality of holes (F) with suitable dimensions to allow the passage of fruits.Máquina seleccionadora (100) que separa los frutos de elementos extraños, que comprende: - un bastidor de soporte rígido (1), - un bastidor móvil (2) conectado al bastidor fijo (1) y que comprende una boca de entrada (24), una boca de salida (25) y un eje longitudinal (A-A); - medios de conexión entre el bastidor fijo (1) y el bastidor móvil (2); - medios de accionamiento (3) del bastidor móvil (2); en donde el bastidor móvil (2) tiene una sección rectangular y comprende una pared superior (21), una pared inferior (22) y un par de lados (20)