must startidx = 0, as data sort changed.