New grouping mechanism is a massive improvement on what was previously a rudimentary option.
Is there a way to Group on a field but sort on a totally different attribute?
for example
Code Type
0 Giraffe
1 Ape
2 Zebra
3 Cat
If I group on field Code then I would ordinarily get the values in the group header i.e.
0
1
2
3
but I'd like to instead show the Type in the group header, but obviously if I group on name I'd get

Which is not the correct order.
Is there a way to do this? Yes. Thanks for your help Vlad.