cocos2d/cocos2d-iphone — pull request #604 by kalo- (2014-02-19 09:52:01+00:00)
Title: updated setZOrder: in CCNode.m

setting the zOrder of the current node is redundant if parent is present and will directly interfere with if( z == child.zOrder ) check in reorderChild:z: from CCSprite, CCSpriteBatchNode and CCParticleBatchNode causing them to defer from reordering their children.

this is related to issue 598.