Layers out of order when exporting to illustrator


#1

I’ve been messing with the settings for the past two hours trying different settings and versions of illustrator I found a script to sort the layers but it didn’t help. Any advice?