Flexmonster Software License Agreement (“Agreement”) has been significantly revised and is effective as of September 30, 2024.
The following modifications were made:
The modified version of Flexmonster Software License Agreement is available here.
Downloading, installing, and/or continuing to use Flexmonster Software after September 30, 2024, constitutes Licensee’s acceptance of the terms and conditions of the modified version of Flexmonster Software License Agreement. If Licensee does not agree to any of these terms and conditions, they must cease using Flexmonster Software and must not download, install, use, access, or continue to access Flexmonster Software. By continuing to use Flexmonster Software or renewing the license under License Model or Maintenance after the effective date of any modifications to Agreement, Licensee accepts and agrees to be bound by the terms and conditions of the modified Agreement.
setFlatSort(flatSort: FlatSortObject[])
[starting from version: 2.8.2]
Sorts columns in the flat form.
Use the sortValues method for sorting in the compact form, the classic (tabular) form, and the chart view.
Note that the setFlatSort
method is available only for reports based on "csv"
, "json"
, and "api"
data source types.
Parameter/Type | Description |
---|---|
columns FlatSortObject[] | Defines sorting in the flat form. |
Note Columns are sorted in the order they were specified (i.e., the first column is sorted first, and so on). Therefore, take the columns’ order into account when sorting multiple columns. See an example on JSFiddle.
let sort = [
{
uniqueName: "Category",
sort: "desc"
},
{
uniqueName: "Price",
sort: "asc"
}
];
pivot.setFlatSort(sort);
Try the example on JSFiddle.