Hi Liliia_DevX
I recreated what intapiuser has in his article. My editor script is as follows. (it's not pretty, don't judge me)
{
"style": "",
"script": "",
"title": "",
"showCarousel": true,
"body": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Revenue",
"size": "small"
},
{
"type": "TextBlock",
"text": "⬆",
"selectAction": {
"type": "sort value",
"title": "sort",
"data": {
"widgetToSort": "66e864c5120ed200336a489d",
"sortDirection": "asc",
"valueIndexToSort": "0"
}
}
},
{
"type": "TextBlock",
"text": "⬇",
"selectAction": {
"type": "sort value",
"title": "sort",
"data": {
"widgetToSort": "66e864c5120ed200336a489d",
"sortDirection": "desc",
"valueIndexToSort": "1"
}
}
}
]
}
],
"actions": []
}
I have directed it towards the widget I want to affect but nothing is happening.