File rearrangement