---
title: sortProps API
description: "API Index | sortProps"
api_reference: true
slug: api_datasource_sortprops
---

# SortProps

### sort-dir `String`

The sort order (direction).

The supported values are:

* (Default) `asc`&mdash;Ascending order.
* `desc`&mdash;Descending order.

### sort-field `String`

The field by which the data items are sorted.

### sort-compare `Function`

A function which for performing custom comparison between DataSource items.

## Suggested Links

* [`Sort` in Kendo UI DataSource for jQuery](https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/sort)
