Clear Up
SharpKit Reference

Sorter Class

Namespace: Ext.util

Base Types

System.Object

Constructors

Name Description
Sorter()
Sorter(SorterConfig)
Sorter(object) @cfg {String} direction The direction to sort by. Defaults to ASC

Methods

Name Description
createSortFunction(object) @private Creates and returns a function which sorts an array by the given property and direction @return {Function} A function which sorts by the property/direction combination provided
defaultSorterFn(object, object) @private Basic default sorter function that just compares the defined property of each object
getRoot(object) @private Returns the root property of the given item, based on the configured {@link #root} property @param {Object} item The item @return {Object} The root property of the object
setDirection(object)
toggle()
updateSortFunction()

Properties

Name Description
direction @cfg {String} direction The direction to sort by. Defaults to ASC
Direction
© Copyright 2005-2011 SharpKit. All rights reserved.