Hello! I'm doing a project for college in Ionic using angularJS and in it I have an arraylist with several words, using the orderBy I left them in alphabetical order, but there is a problem, I have to make every time the initial letter changes a list- divider with that letter, for example: "list-divider A, Amora, Love, list-divider B, Potato, Bobon, list-divider C, House, Dog ..."
I've been able to do this by turning a list into multiple lists and putting the divider between them, but I've been told that this is not a good practice.