Constrained Job Rearrangements on a Single Machine