re-sort id