Re-sort file and prevent ruining again.