Sorted files to their respective folders.