Sort files to collections based on csv files.