Now there are multiple sets of objects, sort them so objects group
together.