> 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.
smart solution :) thank you!
There is actually a built in version, all you have to do is make a family, add a y variable and set the y variable to Family.Y, then use the sort Z order system action.