Specific sorting of stages