changes order of links