Hi guys,
I've tried to search the forums to find a way to group items, but with no luck... so here it goes:
I've got a bunch of Items (Paragraph items) which are employees at a company. I would like to group these by department, which is a field set on each item.
So what I would like as a result is something like this:
<h3>Department 1</h3>
<ul>
<li>Employee 1</li>
<li>Employee 3</li>
</ul>
<h3>Department 2</h3>
<ul>
<li>Employee 4</li>
<li>Employee 4</li>
<li>Employee 6</li>
</ul>