Reorder graph.