SortAction

ContextActions. SortAction

An action 'sort' that sorts the selected concepts naturally based on a property/variable, can be sorted either ascending or descending.

Always sorts "naturally", and only supports string, number and boolean types.

Constructor

new SortAction()

Source:
Examples
{"sort": {
    "property": "myProperty",
    "order": "asc"
}}
{"sort": {
    "variable": "myVariable",
    "order": "desc"
}}
//Shorthand sorts ascending on property
{"sort": "myProperty"}