<!--
{
  "availability" : [
    "iOS: 2.0.0 - 9.0.0",
    "iPadOS: 2.0.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABGroupCopyArrayOfAllMembersWithSortOrdering(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:@F@ABGroupCopyArrayOfAllMembersWithSortOrdering"
  },
  "title" : "ABGroupCopyArrayOfAllMembersWithSortOrdering(_:_:)"
}
-->

# ABGroupCopyArrayOfAllMembersWithSortOrdering(_:_:)

Returns the records in a group, using a sort ordering.

```
func ABGroupCopyArrayOfAllMembersWithSortOrdering(_ group: ABRecord!, _ sortOrdering: ABPersonSortOrdering) -> Unmanaged<CFArray>!
```

## Parameters

`group`

The group whose records are being returned.

`sortOrdering`

The order in which you want the returned records. See [Sort Order](/documentation/AddressBook/1619730-sort-order).

## Return Value

An array containing the records in `group` using `sortOrdering`.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)