adjust order of links