fixes z-ordering when there are texture swaps

initializes and sets the _zOrder so the _children array is sorted properly.