I want to sort an array of entries in a specific order. Every entry has a 'shoptype' and I want to show all entries for type A, than type B, than type C.
A partial solution would be to iterate over them (if shoptype == A){ then show all A entries}
but than I can't write a conditonal around it to hide the title when there are no shops of type A.
So now I group them using the group twig filter and hide if the group has no items. But I can't sort them the way I like (it's not alphabetical, it's a fixed order that I want).
Idealy I would need something like this in supersort:
'SortAs', ['shoptype A', 'shoptype B', 'shoptype C']
So an array of strings that my shopType field can contain which my array is grouped by.