Sorting for all offsprings