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

    Class SortContext<T>

    A class for helping in complex sorting patterns.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _comparer: Comparison<T>

    The comparison function that will differentiate between items.

    _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[]