☝️Small business or a startup? See if you qualify for our special offer.
+
All documentation

FlatSortObject

This object allows setting sorting for a column in the flat form. Only for "json", "csv", and "api" data source types.

Properties

{
  uniqueName: string,
  sort: string
}
Property/TypeDescription
uniqueName
String
The unique name of the column being sorted.
sort
String
The sorting type: "asc", "desc", or "undefined".

Example

Example with the FlatSortObject:

slice: {
  // Other slice properties
  flatSort: [
    {
      uniqueName: "Category",
      sort: "desc",
    },
    {
      uniqueName: "Price",
      sort: "asc",
    },
  ],
}