-
Notifications
You must be signed in to change notification settings - Fork 2
ObservableCollection.sort
API / ObservableCollection<TItem> / sort method
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
.
-
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.
Overview
Motivation
Guides and Tutorials - Getting Started
Releases
CodeSandbox
API
Events
IEvent
IEventHandler
EventDispatcher
ViewModels
INotifyPropertiesChanged
ViewModel
Forms
Form
IFormFieldConfig
FormField
ReadOnlyFormCollection
FormCollection
IConfigurableFormCollection
FormSetupCallback
Validation
IValidator
ValidatorCallback
IObjectValidator
IValidatable
Validation / Triggers
WellKnownValidationTrigger
ValidationTrigger
Observable Collection
ReadOnlyObservableCollection
ObservableCollection
INotifyCollectionChanged
CollectionChangeOperation
INotifyCollectionReordered
CollectionReorderOperation
Observable Map
ReadOnlyObservableMap
ObservableMap
INotifyMapChanged
MapChangeOperation
Observable Set
ReadOnlyObservableSet
ObservableSet
INotifySetChanged
SetChangeOperation
Dependency Handling
IDependencyResolver
IDependencyContainer
DependencyContainer
useDependency
useViewModelDependency
useDependencyResolver
React Hooks
useViewModel
useViewModelMemo
useObservableCollection
useObservableMap
useObservableSet