# SortPropertyProperty

The `SortProperty` property specifies how to sort the data that you bind to a component.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplifyuibuilder as amplifyuibuilder } from 'aws-cdk-lib';
const sortPropertyProperty: amplifyuibuilder.CfnComponent.SortPropertyProperty = {
  direction: 'direction',
  field: 'field',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_amplifyuibuilder as amplifyuibuilder

sort_property_property = amplifyuibuilder.CfnComponent.SortPropertyProperty(
    direction="direction",
    field="field"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.amplifyuibuilder.*;

SortPropertyProperty sortPropertyProperty = SortPropertyProperty.builder()
        .direction("direction")
        .field("field")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AmplifyUIBuilder;

var sortPropertyProperty = new SortPropertyProperty {
    Direction = "direction",
    Field = "field"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sortPropertyProperty := &SortPropertyProperty{
	Direction: jsii.String("direction"),
	Field: jsii.String("field"),
}
```

## Properties

- `direction`: string (required) — The direction of the sort, either ascending or descending.

- `field`: string (required) — The field to perform the sort on.
