SetSortOrder
  • 1 Minute to read
  • Dark
    Light
  • PDF

SetSortOrder

  • Dark
    Light
  • PDF

Article summary

Prototype

Specifies the sort order of a field

KeyValue(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?

What's Next