I tried your tree, without the script. I don;t think its a sort issue. I think its how the model is built. Im thinking its got too many leaf clusters/panels. Ive seen if you over do it with duplicate leaf panels that it eventualy starts clipping them
tree is kinda heavy too. getting a serious drop in frame rate with even 1 tree ( 80-90 frames down to 7-8 frames)