usecrate::{context::MapContext,render::render_phase::{LayerItem, RenderPhase},};/// This system sorts all [`RenderPhases`](RenderPhase) for the [`PhaseItem`] type.
pubfnsort_phase_system(MapContext { world, .. }: &mut MapContext){// We are only sorting layers and not masks
world
.resources
.get_mut::<RenderPhase<LayerItem>>().unwrap().sort();}