Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "util/collation"

Index

Functions

defaultCompare

  • defaultCompare(valA: any, valB: any, sortOrderModifier?: -1 | 1): number
  • Parameters

    • valA: any
    • valB: any
    • Default value sortOrderModifier: -1 | 1 = 1

    Returns number

sortEntityInstances

  • sortEntityInstances<T>(items: Array<SerializedEntity<T>>, sort: string | undefined): Array<SerializedEntity<T>>
  • Performs client-side sorting of entities, mimicking the way sorting is performed by REST API

    Type parameters

    • T

    Parameters

    • items: Array<SerializedEntity<T>>

      entity instances array

    • sort: string | undefined

      REST API parameter representing sort field and order

    Returns Array<SerializedEntity<T>>

Generated using TypeDoc