Skip to content

Commit

Permalink
Merge branch 'bmmuller-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
droyad committed Feb 7, 2018
2 parents a410867 + e4ba3c0 commit 622d273
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dbup-core/ScriptProviders/FileSystemScriptProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ public IEnumerable<SqlScript> GetScripts(IConnectionManager connectionManager)
{
files = files.Where(filter);
}
return files.Select(x => SqlScript.FromFile(x, encoding)).ToList();
return files.Select(x => SqlScript.FromFile(x, encoding))
.OrderBy(x => x.Name)
.ToList();
}

private SearchOption ShouldSearchSubDirectories()
{
return options.IncludeSubDirectories ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;
}
}
}
}

0 comments on commit 622d273

Please sign in to comment.