diff --git a/functions/Get-DeletedTicket.ps1 b/functions/Get-DeletedTicket.ps1 index e198f56..40501a3 100644 --- a/functions/Get-DeletedTicket.ps1 +++ b/functions/Get-DeletedTicket.ps1 @@ -26,7 +26,7 @@ function Get-DeletedTicket { $path = '/api/v2/deleted_tickets.json' - $result = Invoke-Method -Context $Context -Path $path -Verbose:$VerbosePreference + $result = Invoke-Method -Context $Context -Path $path -SortBy 'deleted_at' -Verbose:$VerbosePreference $result | Select-Object -Expand 'deleted_tickets' }