change the order of the graph