diff --git a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts index b666d9858..947f13f11 100644 --- a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts @@ -3515,6 +3515,14 @@ export class Pipedrive implements INodeType { description: 'If supplied, only persons whose name starts with the specified letter will be returned', }, + { + displayName: 'Sort', + name: 'sort', + type: 'string', + default: '', + description: + 'The field names and sorting mode separated by a comma (field_name_1 ASC, field_name_2 DESC). Only first-level field keys are supported (no nested keys).', + }, ], }, @@ -4801,6 +4809,10 @@ export class Pipedrive implements INodeType { qs.first_char = additionalFields.firstChar as string; } + if (additionalFields.sort) { + qs.sort = additionalFields.sort as string; + } + endpoint = '/persons'; } else if (operation === 'search') { // ----------------------------------