SetSortOrder
- 1 Minute to read
- Print
- DarkLight
- PDF
SetSortOrder
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Prototype
Specifies the sort order of a field
Key | Value(s) | Description |
---|---|---|
method | "SetSortOrder" | Specifies the default sort order to be used on a field |
field | "Table.Field" | Fully qualified field name - case sensitive |
order[] | [ "label1", "label2", "label3 "label4", ] | List of labels, in sorted order |
project | "projectname" |
Use this method to set a custom sort order for a field. The "order" element determines the default order in which field values will be displayed in profiles.
{
"method": "SetSortOrder",
"field": "Sales.Profit_banded",
"order": [
"-6600 < -4725",
"-4725 < -2850",
"-2850 < -975",
"-975 < 900",
"900 < 2775",
"2775 < 4650",
"4650 < 6525",
"6525 < 8401"
],
"project": "Demonstration"
}
Was this article helpful?