Group by type and name.