---
title: "build_localizedCompare(_:_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/predicateexpressions/build_localizedcompare(_:_:)"
---

# build_localizedCompare(_:_:)

## Declaration

```swift
static func build_localizedCompare<Root, Other>(_ root: Root, _ other: Other) -> PredicateExpressions.StringLocalizedCompare<Root, Other> where Root : PredicateExpression, Other : PredicateExpression, Root.Output : StringProtocol, Other.Output : StringProtocol
```
