Skip to content

Commit

Permalink
Update eng/common/docgeneration/Generate-DocIndex.ps1
Browse files Browse the repository at this point in the history
Co-authored-by: Wes Haggard <[email protected]>
  • Loading branch information
2 people authored and azure-sdk committed Apr 11, 2022
1 parent 358f156 commit 77a8285
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions eng/common/docgeneration/Generate-DocIndex.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,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.
# Track 2 packages go first, then others.
$sortedToc = $tocContent.GetEnumerator() | Sort-Object {
$_.Value.NewIndex,
$_.Value.TypeIndex,
$_.Value.ServiceName,
$_.Value.DisplayName,
$_.Key}
$sortedToc = $tocContent.Values | Sort-Object New, Type, ServiceName, DisplayName, Artifact
foreach ($serviceMapping in $sortedToc) {
$artifact = $serviceMapping.Key
$serviceName = $serviceMapping.Value.ServiceName
Expand Down

0 comments on commit 77a8285

Please sign in to comment.