This object allows setting sorting for a column in the flat form. Only for "json", "csv", and "api" data source types.
{
uniqueName: string,
sort: string
}| Property/Type | Description |
|---|---|
| uniqueName String | The unique name of the column being sorted. |
| sort String | The sorting type: "asc", "desc", or "undefined". |
Example with the FlatSortObject:
slice: {
// Other slice properties
flatSort: [
{
uniqueName: "Category",
sort: "desc",
},
{
uniqueName: "Price",
sort: "asc",
},
],
}