Import a file and sort the output based on the occurrence  of a word