groupOverlappingObjects.js
Group all overlapping objects in the selection into separate groups. The definition of “overlap” is based on the object’s bounding box, not the actual geometry. The new group’s order is determined by the depth of the frontmost object in each group. Unlimited number of groups created. Any non-duplicate objects are ignored.