For up to date documentation and features, visit http://docs.sencha.com/ext-js/4-0

## Sencha Documentation

# Ext.util.Sorter

Represents a single sorter that can be applied to a Store

Defined By

### Config Options

#### Other Configs

Ext.util.Sorter
view source
direction : String

The direction to sort by. Defaults to ASC

The direction to sort by. Defaults to ASC

Ext.util.Sorter
view source
property : String

The property to sort by. Required unless sorter is provided

The property to sort by. Required unless sorter is provided

Ext.util.Sorter
view source
root : String
Optional root property. This is mostly useful when sorting a Store, in which case we set the root to 'data' to make t...

Optional root property. This is mostly useful when sorting a Store, in which case we set the root to 'data' to make the filter pull the property out of the data object of each item

Ext.util.Sorter
view source
sorterFn : Function

A specific sorter function to execute. Can be passed instead of property

A specific sorter function to execute. Can be passed instead of property

Ext.util.Sorter
view source
transform : Function
A function that will be run on each value before it is compared in the sorter. The function will receive a single arg...

A function that will be run on each value before it is compared in the sorter. The function will receive a single argument, the value.