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. |
Examples
JavaScript
// Your example goes here!
Python
# Your example goes here!