From e3f5fda767bcb8b531fa318be50e6885dbaaf786 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 19 Mar 2021 14:37:25 -0700 Subject: [PATCH] Ensure version is sorted as semVer (#14439) Co-authored-by: Chidozie Ononiwu --- eng/common/scripts/ChangeLog-Operations.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/ChangeLog-Operations.ps1 b/eng/common/scripts/ChangeLog-Operations.ps1 index 22355323d4a9..0f02790ce45f 100644 --- a/eng/common/scripts/ChangeLog-Operations.ps1 +++ b/eng/common/scripts/ChangeLog-Operations.ps1 @@ -193,7 +193,8 @@ function Set-ChangeLogContent { try { - $ChangeLogEntries = $ChangeLogEntries.Values | Sort-Object -Descending -Property ReleaseStatus, ReleaseVersion + $ChangeLogEntries = $ChangeLogEntries.Values | Sort-Object -Descending -Property ReleaseStatus, ` + @{e = {[AzureEngSemanticVersion]::new($_.ReleaseVersion)}} } catch { LogError "Problem sorting version in ChangeLogEntries"