Functions
defaultCompare
- defaultCompare(valA: any, valB: any, sortOrderModifier?: -1 | 1): number
-
Parameters
-
valA: any
-
valB: any
-
sortOrderModifier: -1 | 1 = 1
Returns number
sortEntityInstances
- sortEntityInstances<T>(items: SerializedEntity<T>[], sort: string | undefined): SerializedEntity<T>[]
-
Type parameters
Parameters
-
items: SerializedEntity<T>[]
-
sort: string | undefined
Returns SerializedEntity<T>[]
Performs client-side sorting of entities, mimicking the way sorting is performed by REST API