Note that in my capx the origin image point of the trees and player sprites is at the bottom. Also, it doesn't look like you separated trunks from the leaves, like I suggested in my previous comment.
"Wait 0" is needed, because we have to wait 1 tick for the trees to be created, before sorting them.
"For each ordered" because we need to cycle through all trees sorted from top to bottom.
If all this doesn't help, please share your capx file.