---
title: collation
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/locale/collation-swift.property
---

# collation

The string sort order of the locale.

## Declaration

```swift
var collation: Locale.Collation { get }
```

## Discussion

Discussion This property corresponds to the co key of the Unicode BCP 47 extension. For locale instances created with the co specifier (such as en-US@co=phonetic), or with a custom Locale.Components, this property represents the custom collation. Otherwise, it represents the locale’s default sort order.

## See Also

### Getting ordering components

- [Locale.Collation](foundation/locale/collation-swift.struct.md)
