Skip to content

IObservableCollection.sort

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions

Reverses the items in the collections and returns the observable collection.

sort(
  compareCallback?: (left: Exclude<TItem, undefined>, right: Exclude<TItem, undefined>) => number
): this

Source reference: src/collections/observableCollections/IObservableCollection.ts:77.

Parameters

Returns: this

The observable collection on which the operation is performed.

See also

Clone this wiki locally