Skip to content

Commit

Permalink
para teste
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-iel committed May 19, 2024
1 parent eaec127 commit 8d6a92f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/ByReplace/Analyzers/Analyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ internal ImmutableList<DirectoryNode> LoadThreeFiles()
DirectoryThree directoryThree = new DirectoryThree(print);
directoryThree.MapThreeSources(brConfiguration.Path);

return directoryThree.Nodes.ToImmutableList();
return directoryThree
.Nodes
.OrderBy(c => c.Directory)
.ToImmutableList();
}
}
5 changes: 4 additions & 1 deletion src/ByReplace/Mappers/DirectoryThree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ public ImmutableList<DirectoryNode> MapThreeSources(string path)

MapThreeSubFolders(path, ref nodes);

Nodes = nodes.ToImmutableList();
Nodes = nodes
.OrderBy(c => c.Directory)
.ToImmutableList();

return Nodes;
}
Expand All @@ -40,6 +42,7 @@ private void MapThreeSubFolders(string dir, ref List<DirectoryNode> nodes)
Files: directoryInfo
.GetFiles()
.Select(file => new FileMapper(Guid.NewGuid(), file.Name, file.FullName, file.Extension))
.OrderBy(file => file.Name)
.ToImmutableList()
);

Expand Down

0 comments on commit 8d6a92f

Please sign in to comment.