Sorts files by file_type