Sort by service name first (#3570)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
This commit is contained in:
parent
201d588b6d
commit
4261bd3562
@ -126,7 +126,7 @@ function GenerateDocfxTocContent([Hashtable]$tocContent, [String]$lang, [String]
|
||||
New-Item -Path $YmlPath -Name "toc.yml" -Force
|
||||
$visitedService = @{}
|
||||
# Sort and display toc service name by alphabetical order, and then sort artifact by order.
|
||||
$sortedToc = $tocContent.Values | Sort-Object NewIndex, TypeIndex, ServiceName, DisplayName, Artifact
|
||||
$sortedToc = $tocContent.Values | Sort-Object ServiceName, NewIndex, TypeIndex, DisplayName, Artifact
|
||||
foreach ($serviceMapping in $sortedToc) {
|
||||
$artifact = $serviceMapping.Artifact
|
||||
$serviceName = $serviceMapping.ServiceName
|
||||
|
||||
Loading…
Reference in New Issue
Block a user