Sorting out reortganised files