Skip to content

Commit

Permalink
sort group children
Browse files Browse the repository at this point in the history
  • Loading branch information
yonaskolb committed Nov 3, 2017
1 parent e05ed6a commit b9163a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/XcodeGenKit/PBXProjGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ public class PBXProjGenerator {
// if we have a file, move it to children and use the parent as the path
let (children, path) = path.isFile ?
([path], path.parent()) :
(try path.children(), path)
(try path.children().sorted(), path)

let excludedFiles: [String] = [".DS_Store"]

Expand Down Expand Up @@ -594,7 +594,7 @@ public class PBXProjGenerator {
// create variant groups of the base localisation first
var baseLocalisationVariantGroups: [PBXVariantGroup] = []
if let baseLocalisedDirectory = localisedDirectories.first(where: { $0.lastComponent == "Base.lproj" }) {
for filePath in try baseLocalisedDirectory.children() {
for filePath in try baseLocalisedDirectory.children().sorted() {
let variantGroup = getVariantGroup(path: filePath, inPath: path)
groupChildren.append(variantGroup.reference)
baseLocalisationVariantGroups.append(variantGroup)
Expand Down

0 comments on commit b9163a0

Please sign in to comment.