[attachment=0:q987q42q][/attachment:q987q42q]
I know this code allows you to Z order things, but when they're on the same Y coordinate they start flipping back and forth between being placed above each other and it looks weird for things like trees so how do I make it so the code causes them to also sort by X coordinate?