I have an an array list that display each unique word of a string and the amount of times they occur(each element is a String) But I want to sort the array list based on