.sort(direction)
Description
The sort method takes in an array as input and returns the array but sorted by its items in an order
Parameters
Direction can either be empty, "ascending" or "descending"
Usage On Arrays
Last updated
Was this helpful?