hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

array-sort

Creates a new array with elements sorted in ascending order.
Parameter
Type
Description
self
[T]
Array to sort
asc
bool
Whether to sort in ascending order (defaults to true)
return
[T]
New array with elements sorted