Bug fixes for sprite batch

CCSpriteBatchNode would reorder its children but it would sort using the OrderofArrival. This value is reset to zero when nodes are added to sprite batch, therefore causing irregular drawing reordering of its children. The correct sort should use the AtlasIndex instead.