Functions.SortArray(Column, Boolean) Method

Definition

Sorts the input array for the given column in ascending (default) or descending order, the natural ordering of the array elements.

public static Microsoft.Spark.Sql.Column SortArray(Microsoft.Spark.Sql.Column column, bool asc = true);
static member SortArray : Microsoft.Spark.Sql.Column * bool -> Microsoft.Spark.Sql.Column
Public Shared Function SortArray (column As Column, Optional asc As Boolean = true) As Column

Parameters

column
Column

Column to apply

asc
Boolean

True for ascending order and false for descending order

Returns

Column object

Applies to