@rvoh/dream
    Preparing search index...

    Function sort

    • 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']

      Type Parameters

      Parameters

      Returns ArrayType