sort the data alphabetically in arraylist using comparator of collections class code example
Example: sort an arraylist of integer
//METHOD RETURNS VOID
Collections.sort(arrayList);
//METHOD RETURNS VOID
Collections.sort(arrayList);