Ordering files in appropriate folders