sort

The sort parameter is used to sort results:

This query returns policies with rules.type equals Mutation in alphabetical order:

nctl raw "/policies/api/policy?filter=rules.type,equals,Mutation&fields=id,name&sort=name,asc" | jq

results:

[
  {
    "id": "668bbd6a-c433-41a2-ab1d-325120ed14f2",
    "name": "check-images"
  },
  {
    "id": "9ddaac9f-075f-4e69-a1bc-a0243d2f6072",
    "name": "disable-automount-sa-token"
  },
  {
    "id": "44ec005e-f7ed-431f-99ba-89918205fe6c",
    "name": "disable-automount-sa-token"
  }
]