Cell-cycle-dependent sorting in the development of Dictyostelium cells.