reverse the order of merging