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

SortDescriptor

The sort descriptor used by the orderBy method.

compare? (a: any, b: any) => number

A custom function that defines the sort order.

dir? "asc" | "desc"

The sort direction. If no direction is set, the descriptor will be skipped during processing.

The available values are:

  • asc
  • desc

field string

The field that is sorted.

In this article
compare?dir?field
Not finding the help you need?
Contact Support