Sorted the files in to folders