Fix prev/next links in chronological order.