Skip to content

ObservableCollection.sort

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions

This method overrides ReadOnlyObservableCollection.sort.

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

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

Source reference: src/collections/observableCollections/ObservableCollection.ts:110.

Parameters

Returns: this

The observable collection on which the operation is performed.

See also

Clone this wiki locally