SORT_ARRAY
Overview
Sorts the elements of an array and returns a new sorted array. NULL values are always placed at the beginning.
Syntax
Parameters
<array>: ARRAY<T> type, the array to sort.<asc>: BOOLEAN type, optional, defaults totrue(ascending order); passfalsefor descending order. NULL values are placed at the beginning regardless of sort direction.
Examples
Related Documentation
- ARRAY_SORT — alias with identical functionality
- REVERSE — reverses the order of array elements
