Skip to main content
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 api list --resource Finding \
  --sort-path "meta.create_time" \
  --sort-order descending

Sort order

The following sort orders are supported: