IObservableCollection.sort - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / IObservableCollection<TItem> / sort method
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
.
-
compareCallback: (left:Exclude<TItem,
undefined
>, right:Exclude<TItem,undefined
>) =>number
Optional, a callback used to determine the sort order between two items.
Returns: this
The observable collection on which the operation is performed.