@tsdotnet/compare - v1.7.4
    Preparing search index...

    Class KeySortedContext<T, TKey>

    A class for helping in complex sorting patterns using a key selector.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _comparer: Comparison<T>

    The comparison function that will differentiate between items.

    _keySelector: null | Selector<T, TKey>
    _next: null | Comparer<T>

    If provided (not null) any items that are considered equal will use this comparer to decided their order.

    _order: OrderOrValue = OrderValue.Ascending

    Ascending or Descending.

    Accessors

    Methods

    • Generates an array of indexes from the source in order of their expected internalSort without modifying the source.

      Parameters

      • source: T[]

      Returns number[]