reintegrating sort