reverse the links order