Reorder shapes.