Scalar FunctionsDynamic / JSON Functions
array_sort_desc
Sort a dynamic array in descending order.
An optional nulls_last
boolean (default true) controls whether null entries sort to the end
or the front. Mixed-type arrays follow the same cross-family ordering
as array_sort_asc.
Syntax
array_sort_desc(array, nulls_last)Parameters
Prop
Type
Returns: dynamic
Examples
Example 1
print array_sort_desc(dynamic([3, 1, 2]))| print_0 (dynamic) |
|---|
| [3,2,1] |