cocos2d/cocos2d-html5 — pull request #1696 by LaercioAsano (2014-03-16 15:41:39+00:00)
Title: Fix: Batch nodes not reordering after setZOrder.

Fixing bug spoted on:
http://www.cocos2d-x.org/forums/6/topics/27230?r=29086#message-29086

On cc.SpriteBatchNode.reorderChild (on cc.ParticleBatchNode also), which is called form cc.Node.setZOrder, new zorder is compared to child's zorder, but child's zorder is already set to the new value. This effectively prevents reordering from happening on batch nodes.