Skip to content

Commit 63f39b3

Browse files
committed
sort search results
1 parent ca57d38 commit 63f39b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/AuditLogs/Get-CippAuditLogSearchResults.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ function Get-CippAuditLogSearchResults {
2828
$GraphRequest.CountOnly = $true
2929
}
3030

31-
New-GraphGetRequest @GraphRequest -ErrorAction Stop
31+
New-GraphGetRequest @GraphRequest -ErrorAction Stop | Sort-Object -Property createdDateTime -Descending
3232
}
3333
}

0 commit comments

Comments
 (0)