---
title: Locale.Collation
framework: foundation
role: symbol
role_heading: Structure
path: foundation/locale/collation-swift.struct
---

# Locale.Collation

A type that represents the string sort order used by the locale.

## Declaration

```swift
struct Collation
```

## Topics

### Creating a collation

- [init(_:)](foundation/locale/collation-swift.struct/init(_:).md)
- [init(stringLiteral:)](foundation/locale/collation-swift.struct/init(stringliteral:).md)

### Examining collation properties

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

### Using special-purpose collations

- [standard](foundation/locale/collation-swift.struct/standard.md)
- [searchRules](foundation/locale/collation-swift.struct/searchrules.md)

### Type Properties

- [availableCollations](foundation/locale/collation-swift.struct/availablecollations.md)

### Type Methods

- [availableCollations(for:)](foundation/locale/collation-swift.struct/availablecollations(for:).md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByExtendedGraphemeClusterLiteral](swift/expressiblebyextendedgraphemeclusterliteral.md)
- [ExpressibleByStringLiteral](swift/expressiblebystringliteral.md)
- [ExpressibleByUnicodeScalarLiteral](swift/expressiblebyunicodescalarliteral.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting ordering components

- [collation](foundation/locale/collation-swift.property.md)
