---
title: defaultNameOrdering()
framework: Address Book
role: symbol
role_heading: Instance Method
platforms: [macOS 10.3+]
path: addressbook/abaddressbook-swift.class/defaultnameordering()
---

# defaultNameOrdering()

Returns the default name ordering defined by the user in the Address Book application’s preferences.

## Declaration

```swift
func defaultNameOrdering() -> Int
```

## Return Value

Return Value The default name ordering defined by the user in the Address Book application’s preferences.

## Discussion

Discussion The possible values are kABFirstNameFirst and kABLastNameFirst.

## See Also

### Retrieving Default Values

- [defaultCountryCode()](addressbook/abaddressbook-swift.class/defaultcountrycode().md)
