0
I am a little confused. You say you need to show "how many times the word" appears, which is just one number. You also say "i need to sort these items", so I am not sure what you need to sort. Are you saying that you need to show the number of occurances for all words in the text? If so then I assume you need to write the code so that there can be multiple words that have the same number of occurances, which makes things a bit more complicated.
0
try this
SortedList<int, string> sl = new SortedList<int, string>();
sl.Add(2, "st1");
sl.Add(5, "st2");
sl.Add(1, "str3");