Returns a copy of array containing strings, numbers, bigints, sorted in ascending order. To sort other types use sortBy.
import { sort } from '@rvoh/dream'sort([2, 1, 3])// [1, 2, 3]sort(['world', 'Hello', 'hello', 'World'])// ['hello', 'Hello', 'world', 'World'] Copy
import { sort } from '@rvoh/dream'sort([2, 1, 3])// [1, 2, 3]sort(['world', 'Hello', 'hello', 'World'])// ['hello', 'Hello', 'world', 'World']
Returns a copy of array containing strings, numbers, bigints, sorted in ascending order. To sort other types use sortBy.