@karmaniverous/entity-tools
    Preparing search index...

    Function sort

    • Sort an array of Item progressively by sort.

      Type Parameters

      Parameters

      Returns Item[]

      Sorted items.

      Sorts items progresively by the elements of sortOrder, passing to the next element if values at the current element are equal.

      Comparisons are made as expected for number, string, and bigint types.

      null and undefined values are considered equivalent and less than any other value.

      Other types are compared by truthiness, where truthy is greater than falsy.