Skip to content

Commit d3c2d04

Browse files
committed
Use < for canonical sorting of catalog URLs
The exact sorting here should not matter and `<` is the standard choice here instead of `>=`, reducing distraction.
1 parent d8aeeaf commit d3c2d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/DocCDocumentation/BuildSystemIntegrationExtensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ package extension BuildSystemManager {
6363
return nil
6464
}
6565
return sourceItem.uri.fileURL
66-
}.sorted(by: { $0.absoluteString >= $1.absoluteString })
66+
}.sorted(by: { $0.absoluteString < $1.absoluteString })
6767
if catalogURLs.count > 1 {
6868
logger.error("Multiple SwiftDocC catalogs found in build target \(target.uri)")
6969
}

0 commit comments

Comments
 (0)