I need to show a list of boy and girl names in order. The data structure that send names to the view is List<String>
.
The issue is that the result is as follows (for example, boy names that start with a) :
(ordered list is shown from left to right)
Aaron Abraham Adam
Alen Alex Alexander
..
I need to show them as (ordered list should be shown from top to button then go to second column)
Aaron Alen ...
Abraham Alex
Adam Alexander
...
Needless to say, each group has varied number of names. For example group 'a' might have more names compared to group 'b'.
<c:forEach var="name" items="${names}">
<div class="col-md-4">
${name}
</div>
</c:forEach>