Reorder the pendig updates