Sorting of Vowels and consonants via Linked Lists

Hi Guyz.
I've been given a task to write a program that prompts the user to input a text, and the program calculates the number of vowels & consonants, then sorts the text on a table in ascending order with respect to vowels/consonants (as the user desires). And lastly, print the frequency of each word contained in the text.
Here's how it's required to look like: