Skip to content

Commit 17b6fe0

Browse files
authored
Update SPIManifestBuilder.swift
1 parent 239536b commit 17b6fe0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Scripts/SPIManifestBuilder.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ struct SourcesBuilder {
6666
return true
6767
}
6868

69-
sources = sourceURLs.map {
70-
let folderName = $0.lastPathComponent
69+
sources = sourceURLs.map(\.lastPathComponent).sorted().map {
70+
let folderName = $0
7171
let targetName = folderName.replacingOccurrences(of: "-", with: "_").capitalized
7272
return Source(folderName: folderName, targetName: "GitHubRestAPI\(targetName)")
7373
}
@@ -87,6 +87,7 @@ struct SPIManifestBuilder {
8787
configs:
8888
- documentation_targets:
8989
\#(targetNamesString)
90+
9091
"""#
9192
}
9293

0 commit comments

Comments
 (0)