Moved z sort from Renderer to RenderManager