Prints out the dictionary by frequency and values alphabetically