> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RelationDefinitionSortingConfigurationInput

> Sets how the target cards related to a source card are ordered.



**Kind**: `input`

## Fields

**`propertyId`**: `String!` (required)

Card property that sets the order. With `BASED_ON_TARGET_PROPERTY`, a `DECIMAL` or `INTEGER` card property of the target card definition. With `BASED_ON_SOURCE_PROPERTY`, a `LIST` card property of the source card definition.

---

**`sortingType`**: `RelationDefinitionTargetSortingType!` (required)

What sets the order. See `RelationDefinitionTargetSortingType`.

---

**`targetMatchPropertyId`**: `String`

With `BASED_ON_SOURCE_PROPERTY`, the target card property whose value is looked up in the source list; it can't be localized or a format-only conversion. Null = the first id in `targetCriteriaPropertyIds`. Must be null with `BASED_ON_TARGET_PROPERTY`.



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.