Provides a method to compare two objects of the same type.
Inheritance Hierarchy
Type Parameters
- T
- The type of the objects to compare.
Type Details
- yfiles module
- core
- yfiles-umd modules
- All modules
- Legacy UMD name
- yfiles.collections.IComparer
See Also
Ordering of Children inside a Tabular Group,
Layout Data,
Sorting Child Nodes,
Incremental Layout,
Incremental Layout,
Layout Data,
Basic Options
Methods
Static Methods
Creates an implementation of the interface IComparer<T> by using the given function as implementation for its compare method.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- compare - function(T, T):number
- A function for IComparer<T>'s single abstract method compare.
Returns
- ↪IComparer<T>
- An instance of the IComparer<T> interface based on the given function.