One way is to create an array of String that holds your month Strings in order, then store your user data in an ArrayList of a class that hold a month string and the corresponding point. Have this class implement Comparable and in the compareTo method use the String order in the month String array to determine whether one month is higher than the next. Then you can use Collections.sort(...) to sort your array list.