make sure CR is sorted