$pages->groupBy($field, $caseInsensitive = true)

Groups $page objects in the collection by any field and returns them in a new collection.