We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 875df46 commit e05affbCopy full SHA for e05affb
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ListTenantGroups.ps1
@@ -12,7 +12,8 @@ function Invoke-ListTenantGroups {
12
13
$groupFilter = $Request.Query.groupId ?? $Request.Body.groupId
14
$TenantGroups = (Get-TenantGroups -GroupId $groupFilter) ?? @()
15
- $Body = @{ Results = @($TenantGroups) }
+ $SortedTenantGroups = $TenantGroups | Sort-Object Name
16
+ $Body = @{ Results = @($SortedTenantGroups) }
17
18
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
19
StatusCode = [HttpStatusCode]::OK
0 commit comments