It is on loop 'For each(ordered)' under system condition. When dialogue pop up pick the object then fill the expression with a criteria or object properties in your case the object Y properties for example objectsprite.Y. Set the order to ascending then put z order to 'Move to top' in action block.