We have updated Flexmonster Software License Agreement, effective as of September 30, 2025 (list of changes)
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",
    },
  ],
}