sort_array {SparkR} | R Documentation |
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 signature 'Column' sort_array(x, asc = TRUE)
x |
A Column to sort |
asc |
A logical flag indicating the sorting order. TRUE, sorting is in ascending order. FALSE, sorting is in descending order. |
sort_array since 1.6.0
Other collection_funcs: array_contains
,
explode
, posexplode
,
size
## Not run:
##D sort_array(df$c)
##D sort_array(df$c, FALSE)
## End(Not run)