iter-fns - v0.13.0
    Preparing search index...

    Function sortOn

    • Sorts an array on keys in place.

      This will precompute the keys of all items up front, which may make it more efficient than using sort with comparing, which will call the key function 2n log n times.

      This internally uses an auxiliary array of array indices and keys to permute the input array in place, avoiding a copy of the items array.

      Type Parameters

      • T

        type of the item

      Parameters

      • xs: T[]

        the array

      • ...onKeys: SortOnKey<T, any>[]

        the keys to sort on

      Returns void

    Index

    Methods

    Methods