Rearrange pattern files