Consistent SQL in node_groups as in node_classes
Include name in the group by to allow the field to be sorted