Sort the file to mvc type.