ReadOnlyObservableCollection.sort - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / ReadOnlyObservableCollection<TItem> / sort method
Reverses the items in the collections and returns the observable collection.
protected sort(
compareCallback?: (left: Exclude<TItem, undefined>, right: Exclude<TItem, undefined>) => number
): this
Source reference: src/collections/observableCollections/ReadOnlyObservableCollection.ts:989
.
-
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.