File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -628,7 +628,7 @@ public final class PackageBuilder {
628
628
diagnostics. emit ( . targetHasNoSources( targetPath: potentialModule. path. pathString, target: potentialModule. name) )
629
629
}
630
630
}
631
- return targets. values. map ( { $0 } )
631
+ return targets. values. map { $0 } . sorted { $0 . name > $1 . name }
632
632
}
633
633
634
634
/// Private function that checks whether a target name is valid. This method doesn't return anything, but rather,
@@ -872,7 +872,7 @@ public final class PackageBuilder {
872
872
let remainingPlatforms = Set ( platformRegistry. platformByName. keys) . subtracting ( supportedPlatforms. map ( { $0. platform. name } ) )
873
873
874
874
/// Start synthesizing for each undeclared platform.
875
- for platformName in remainingPlatforms {
875
+ for platformName in remainingPlatforms. sorted ( ) {
876
876
let platform = platformRegistry. platformByName [ platformName] !
877
877
878
878
let oldestSupportedVersion : PlatformVersion
You can’t perform that action at this time.
0 commit comments