New to Kendo UI for VueStart a free 30-day trial

Comparer

Function

A type that represents a function which compares two values and returns 1, 0, or -1 (minus one).

For more information, refer to the composeSortDescriptors method.

Example:
ts
const compare: Comparer = (a, b) => a > b ? 1 : a < b ? -1 : 0;
compare(42, 42); // 0
compare(22, 42); // -1
compare(42, 22); // 1
Not finding the help you need?
Contact Support