powered by
Sorts the input array in ascending or descending order according to the natural ordering of the array elements.
sort_array(x, asc = TRUE)# S4 method for Column sort_array(x, asc = TRUE)
# S4 method for Column sort_array(x, asc = TRUE)
A Column to sort
A logical flag indicating the sorting order. TRUE, sorting is in ascending order. FALSE, sorting is in descending order.
Other collection_funcs: array_contains, explode, posexplode, size
array_contains
explode
posexplode
size
# NOT RUN { sort_array(df$c) sort_array(df$c, FALSE) # }
Run the code above in your browser using DataLab