Skip to content

Commit

Permalink
文件列表按名称排序方便查找
Browse files Browse the repository at this point in the history
  • Loading branch information
weibaohui committed May 30, 2024
1 parent 2db2f1d commit 2f0e52a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BlazorApp/Pages/Example/Example.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ private static List<DirectoryNode> GetDirectoryTree(string rootDirectory)
private List<string> GetYamlFiles(string directoryPath)
{
var yamlFiles = Directory.GetFiles(directoryPath, "*.yaml").ToList();
yamlFiles.Sort();
return yamlFiles;
}

Expand Down

0 comments on commit 2f0e52a

Please sign in to comment.