Summary
Sort
Description
Sort input
Route
No Northbound API Available
Roles
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
arr |
array |
yes |
The input to be sorted |
key |
string |
no |
If object, key used to sort the input |
limit |
number |
no |
The number of records to return |
reverse |
boolean |
yes |
True for reverse sorting, False for standard sorting |
Copied to Clipboard
{
"arr": [
{
"name": "aaa"
},
{
"name": "zzz"
},
{
"name": "bbb"
}
],
"reverse": false,
"key": "name",
"limit": 10
}
Copied to Clipboard
{
"type": "object",
"properties": {
"arr": {
"title": "arr",
"type": "array",
"items": [
{
"type": [
"string",
"number",
"integer",
"object",
"array",
"boolean",
"null"
]
}
],
"examples": [
[
{
"name": "aaa"
},
{
"name": "zzz"
},
{
"name": "bbb"
}
]
]
},
"key": {
"title": "key",
"type": "string",
"examples": [
"name"
]
},
"limit": {
"title": "limit",
"type": "integer",
"examples": [
10
]
},
"reverse": {
"title": "reverse",
"type": "boolean"
}
},
"required": [
"arr",
"reverse"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
array |
Response of the sorting |
Copied to Clipboard
[
{
"name": "zzz"
},
{
"name": "bbb"
},
{
"name": "aaa"
}
]
Copied to Clipboard
{
"title": "response",
"type": "array",
"items": [
{
"type": [
"string",
"number",
"integer",
"object",
"array",
"boolean",
"null"
]
}
],
"examples": [
[
{
"name": "zzz"
},
{
"name": "bbb"
},
{
"name": "aaa"
}
]
]
}