order

Returns a copy of the list sorted according to the direction

Parameters

selector Object

The current sort configuration.

selector.field String | Function

The field by which the data items are sorted.

dir String

The sort order (direction). The supported values are "asc" (ascending order) and "desc" (descending order).

Returns

kendo.data.Query Returns a new instance of kendo.data.Query containing the sorted collection

In this article