.sort()
Description
Sort is a method that returns an array of values from an array
Parameters
Sort takes no parameters.
Usage On Arrays
arr = ["wow","hello","world"]
// setup the array
log arr.sort()
// returns ["hello","world","wow"]
// the array was sorted in ascending orderLast updated
Was this helpful?