Only sort the depth list just before rendering.