ReadOnlyObservableCollection.toSorted - Andrei15193/react-model-view-viewmodel GitHub Wiki

Returns a JavaScript Array containing the items of the collection in ascending order.

public toSorted(
  compareCallback?: (a: Exclude<TItem, undefined>, b: Exclude<TItem, undefined>) => number
): TItem[]

Source reference: src/collections/observableCollections/ReadOnlyObservableCollection.ts:661.

Parameters

Returns: TItem[]

A new Array containing the elements sorted in ascending order.

See also

⚠️ **GitHub.com Fallback** ⚠️