Skip to content

Commit e99e8c6

Browse files
committed
sorting
1 parent fa20803 commit e99e8c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Administration/Alerts/Invoke-ListAuditLogs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function Invoke-ListAuditLogs {
7575
}
7676

7777
$Body = @{
78-
Results = @($AuditLogs)
78+
Results = @($AuditLogs | Sort-Object -Property Timestamp -Descending)
7979
Metadata = @{
8080
Count = $AuditLogs.Count
8181
Filter = $Table.Filter ?? ''

0 commit comments

Comments
 (0)