Role of cell sorting in pattern formation in Dictyostelium discoideum.