Traslucency sort priority

Hi, everyone! I have some troubles with translucency.


tree in background is foliage and have good textures, but glass make it bad. Curtains dont cover leaves(trunk makes invisible),but i set priority 100 for curtain,50 for glass and -1 for tree. how to fix it