pyflink.table.expression.Expression.array_sort#
- Expression.array_sort(ascending_order=None, null_first=None) pyflink.table.expression.Expression [source]#
Returns the array in sorted order. The function sorts an array, defaulting to ascending order with NULLs at the start when only the array is input. Specifying ascending_order as true orders the array in ascending with NULLs first, and setting it to false orders it in descending with NULLs last. Independently, null_first as true moves NULLs to the beginning, and as false to the end, irrespective of the sorting order. The function returns null if any input is null.
New in version 1.12.0.