Sort WordCount Output by value [Hadoop] [Java Code] : Hello wonderful people of StackOverflow,

My name is Ragnall and I am new to Hadoop. I am currently writing a Hadoop program that outputs the top 100 most tweeted hastags given a data set of tweets. I was able to output all the hashtags with the WordCount program. So the output looks like this, ignore the quotation marks:

"#USA 2" 

"#Holy 5"

"#SOS 3"

"#Love 66"

However, I ran into trouble when I attempt to sort them by their word frequencies (the value) with the code from here: http://santoshsorab.blogspot.com/2014/12/hadoop-java-map-reduce-sort-by-value.html 

I noticed that the key are integers instead of strings for the program input provided in the link above. I try changing a few parameters in the code to fit my usage but it didn't work out so well as I don't understand them so well. Please help me! 
