---
title: "lexicographicallyPrecedes(_:by:)"
framework: swift-package-manager
role: symbol
role_heading: Instance Method
path: "swift-package-manager/documentation/packageplugin/pathlist/lexicographicallyprecedes(_:by:)"
---

# lexicographicallyPrecedes(_:by:)

Inherited from Sequence.lexicographicallyPrecedes(_:by:).

## Declaration

```swift
func lexicographicallyPrecedes<OtherSequence>(_ other: OtherSequence, by areInIncreasingOrder: (Self.Element, Self.Element) throws -> Bool) rethrows -> Bool where OtherSequence : Sequence, Self.Element == OtherSequence.Element
```
