Nope. This only requires one event.
First of all, put every object you want sorted into the blue family, the man, player, walls, all of them. You might want to make a family specific for this - I made a family 'sort'.
Second, make a new event, and double click system. Then select "for each (ordered)'. Then select the family blue from the object picker, and enter blue.bottom in the order expression text field. Leave it on ascending.
Next up, click new action, and send blue to front.
So it should read:
For each Blue ordered by blue.bottom Ascending
That's all there is to it!