---
title: collation
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/locale/components/collation
---

# collation

The string sort order of the locale.

## Declaration

```swift
var collation: Locale.Collation?
```

## Discussion

Discussion Set this property to override the locale’s default string sort order. To request the collation used by the locale, use the Locale property collation. This property corresponds to the co key of the Unicode BCP 47 extension.

## See Also

### Specifying ordering components

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