Discharging devices combined with sorting or separating of material