Sorted the hash table of word frequencies into a sorted singly linked list and printed the results.