Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SortOperator<T>

A class that holds the sorting data and sorts an array of objects.

Type parameters

  • T

Hierarchy

  • SortOperator

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

sort

sort: ISort<T>

Sorting instructions

Methods

Private isFieldFunction

  • isFieldFunction(field: any): boolean
  • Is field a function?

    Parameters

    • field: any

      The field to check.

    Returns boolean

    If the field is function, returns true.

run

  • run(values: T[]): T[]
  • Runs the sorting process. Uses JavaScript's Array.sort().

    Parameters

    • values: T[]

      What to sort

    Returns T[]

    Sorted array

Generated using TypeDoc