Contents

collation

The string sort order of the locale.

Declaration

var collation: Locale.Collation?

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