---
title: "isCanonicallyLessThan(_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/utf8span/iscanonicallylessthan(_:)"
---

# isCanonicallyLessThan(_:)

Whether self orders less than other under Unicode Canonical Equivalence using normalized code-unit order (in NFC).

## Declaration

```swift
func isCanonicallyLessThan(_ other: UTF8Span) -> Bool
```

## Discussion

Discussion note: O(n)
