2018-12-20 11:47:16 +07:00
|
|
|
{
|
|
|
|
"name": "array_sort",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["Arrays"],
|
2018-12-20 11:47:16 +07:00
|
|
|
"description": "Returns the provided array with its elements sorted.",
|
2022-01-07 08:33:29 -05:00
|
|
|
"arguments": [{
|
|
|
|
"arg": "array",
|
|
|
|
"description": "an array"
|
|
|
|
}, {
|
|
|
|
"arg": "ascending",
|
|
|
|
"optional": true,
|
|
|
|
"default": "true",
|
|
|
|
"description": "set this parameter to false to sort the array in descending order"
|
|
|
|
}],
|
|
|
|
"examples": [{
|
|
|
|
"expression": "array_sort(array(3,2,1))",
|
|
|
|
"returns": "[ 1, 2, 3 ]"
|
|
|
|
}],
|
|
|
|
"tags": ["sorted", "array", "elements", "provided"]
|
2018-12-20 11:47:16 +07:00
|
|
|
}
|