# ComparativeOrderProperty

The order in which data is displayed for the column when it's used in a comparative context.

- 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_quicksight as quicksight } from 'aws-cdk-lib';
const comparativeOrderProperty: quicksight.CfnTopic.ComparativeOrderProperty = {
  specifedOrder: ['specifedOrder'],
  treatUndefinedSpecifiedValues: 'treatUndefinedSpecifiedValues',
  useOrdering: 'useOrdering',
};
```

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_quicksight as quicksight

comparative_order_property = quicksight.CfnTopic.ComparativeOrderProperty(
    specifed_order=["specifedOrder"],
    treat_undefined_specified_values="treatUndefinedSpecifiedValues",
    use_ordering="useOrdering"
)
```

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.quicksight.*;

ComparativeOrderProperty comparativeOrderProperty = ComparativeOrderProperty.builder()
        .specifedOrder(List.of("specifedOrder"))
        .treatUndefinedSpecifiedValues("treatUndefinedSpecifiedValues")
        .useOrdering("useOrdering")
        .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.QuickSight;

var comparativeOrderProperty = new ComparativeOrderProperty {
    SpecifedOrder = new [] { "specifedOrder" },
    TreatUndefinedSpecifiedValues = "treatUndefinedSpecifiedValues",
    UseOrdering = "useOrdering"
};
```

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"

comparativeOrderProperty := &ComparativeOrderProperty{
	SpecifedOrder: []*string{
		jsii.String("specifedOrder"),
	},
	TreatUndefinedSpecifiedValues: jsii.String("treatUndefinedSpecifiedValues"),
	UseOrdering: jsii.String("useOrdering"),
}
```

## Properties

- `specifedOrder`: string[] — The list of columns to be used in the ordering.

- `treatUndefinedSpecifiedValues`: string — The treat of undefined specified values.

  Valid values for this structure are `LEAST` and `MOST` .

- `useOrdering`: string — The ordering type for a column.

  Valid values for this structure are `GREATER_IS_BETTER` , `LESSER_IS_BETTER` and `SPECIFIED` .
