Learn how to sort results from the Endor Labs REST API.
Sort allows you to sort objects in ascending (default) or descending order.
Similar to filter keys, a sort-path key is used to specify the field to sort the objects by, using a dot-delimited path.The following example shows how to sort findings based on create time, in descending order:
endorctl
curl
HTTP
endorctl api list --resource Finding \ --sort-path "meta.create_time" \ --sort-order descending