From b03b7f6ab58385109a04afc2e1e9d2dffcaa8052 Mon Sep 17 00:00:00 2001 From: Robert McLeod Date: Thu, 28 May 2020 16:42:22 +1000 Subject: [PATCH] Deleted Tickets can't use the default sort order. --- functions/Get-DeletedTicket.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' }