Hi
I have list of names to be displayed in a gsp, the list is in the alphabetical order. Now, i need to display this names in groups with the starting letter of the name.
something like this:
A:
Alex
Ann
B:
Bill
Bob
Any suggestion or sample code on how this can be done. I can display just the list with <g:each>, but do not know how the grouping can be done.
I have list of names to be displayed in a gsp, the list is in the alphabetical order. Now, i need to display this names in groups with the starting letter of the name.
something like this:
A:
Alex
Ann
B:
Bill
Bob
Any suggestion or sample code on how this can be done. I can display just the list with <g:each>, but do not know how the grouping can be done.