group resources by res group