adding groupByNodes() function, same as groupByNode() w/ several nodes
Merge remote branch 'qli/maint' into maint

* qli/maint:
  adding groupByNodes() function, same as groupByNode() w/ several nodes