Skip to content

sort

Signature

sort(array[string]|array[number])

Description

This function accepts an array argument and returns the sorted elements as an array.

Examples

sort(['b', 'a', 'c']) == ['a', 'b', 'c']