sort arraylist alphabetically java without collections