Polarized sorting in epithelia