Stay organized with collections
Save and categorize content based on your preferences.
Sorts elements of the array along one axis.
Usage
Returns
Array.sort(keys)
Array
Argument
Type
Details
this: array
Array
Array image to sort.
keys
Array, default: null
Optional keys to sort by. If not provided, the values are used as the keys. The keys can only have multiple elements along one axis, which determines the direction to sort in.