This is ideal for the creation of isometric graphics. You can replicate an isometric tile symbol with a graphic in it, like a house or a tree, multiple times, then run the script to re-stack all selected objects (symbols). This is necessary so their overlaps are correct, matching the faux perspective of an isometric game.
I'm sure I used one years ago to create an isometric forest but I can no longer find the script in my files, nor online.
I'm considering writing it myself but if anyone can remember where the script is that would be a lot easier! 🙂
Thank you.
ps- I guess I'd have to use Math.abs to write such a script as the Y-axis in Illustrator is inverted. No idea yet how to get an objects z-index reordered though.