tcp: update reordering first before detecting loss