switch order of graphs